|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.io.CopyJob
public class CopyJob
<oddjob id="this">
<job>
<copy to="${this.args[0]}/work/io/copy">
<from>
<file file="${this.args[0]}/test/io/reference/test1.txt"/>
</from>
</copy>
</job>
</oddjob>
<oddjob id="this">
<job>
<copy to="${this.args[0]}/work/io/copy">
<from>
<file file="${this.args[0]}/test/io/reference/a"/>
</from>
</copy>
</job>
</oddjob>
<oddjob id="this">
<job>
<sequential>
<jobs>
<copy name="Copy from a file to a buffer">
<from>
<file file="${this.args[0]}/test/io/reference/test1.txt"/>
</from>
<output>
<identify id="buff">
<value>
<buffer/>
</value>
</identify>
</output>
</copy>
<echo id="e" name="What's in the file?">${buff}</echo>
</jobs>
</sequential>
</job>
</oddjob>
| Constructor Summary | |
|---|---|
CopyJob()
|
|
| Method Summary | |
|---|---|
int |
getDirectoriesCopied()
|
int |
getFilesCopied()
|
File[] |
getFrom()
Get the from file. |
InputStream |
getInput()
|
String |
getName()
Get the name. |
OutputStream |
getOutput()
|
File |
getTo()
Get the to file. |
void |
run()
|
void |
setFrom(File[] file)
Set the from file. |
void |
setInput(InputStream in)
Set the InputStream. |
void |
setName(String name)
Set the name |
void |
setOutput(OutputStream out)
Set the OutputStream. |
void |
setTo(File file)
Set the to file. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CopyJob()
| Method Detail |
|---|
public String getName()
public void setName(String name)
name - The name.public File[] getFrom()
public void setFrom(File[] file)
The - from file.public File getTo()
public void setTo(File file)
The - to file.public void setInput(InputStream in)
The - InputStream.public void setOutput(OutputStream out)
The - OutputStream.public int getFilesCopied()
public int getDirectoriesCopied()
public void run()
run in interface Runnablepublic InputStream getInput()
public OutputStream getOutput()
public String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||