org.oddjob.io
Class CopyJob

java.lang.Object
  extended byorg.oddjob.io.CopyJob
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class CopyJob
extends java.lang.Object
implements java.lang.Runnable, java.io.Serializable

Description:
A Copy job. Copy either:
Example:
<copy from="fu/bar.txt" to="foo/ba.txt"/>
See Also:
Serialized Form

Constructor Summary
CopyJob()
           
 
Method Summary
 java.io.File[] getFrom()
          Get the from file.
 java.io.InputStream getInput()
           
 java.lang.String getName()
          Get the name.
 java.io.OutputStream getOutput()
           
 java.io.File getTo()
          Get the to file.
 void run()
           
 void setFrom(java.io.File[] file)
          Set the from file.
 void setInput(java.io.InputStream in)
          Set the InputStream.
 void setName(java.lang.String name)
          Set the name
 void setOutput(java.io.OutputStream out)
          Set the OutputStream.
 void setTo(java.io.File file)
          Set the to file.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyJob

public CopyJob()
Method Detail

getName

public java.lang.String getName()
Get the name.

Returns:
The name.

setName

public void setName(java.lang.String name)
Set the name

Parameters:
name - The name.

getFrom

public java.io.File[] getFrom()
Get the from file.

Returns:
The from file.

setFrom

public void setFrom(java.io.File[] file)
Set the from file.


getTo

public java.io.File getTo()
Get the to file.

Returns:
The to file.

setTo

public void setTo(java.io.File file)
Set the to file.


setInput

public void setInput(java.io.InputStream in)
Set the InputStream.


setOutput

public void setOutput(java.io.OutputStream out)
Set the OutputStream.


run

public void run()
Specified by:
run in interface java.lang.Runnable

getInput

public java.io.InputStream getInput()
Returns:
Returns the input.

getOutput

public java.io.OutputStream getOutput()
Returns:
Returns the output.

toString

public java.lang.String toString()