net.damf.console.comperation.fileHandle
Class Copy
java.lang.Object
net.damf.console.comperation.fileHandle.Copy
- All Implemented Interfaces:
- Comperation
public class Copy
- extends java.lang.Object
- implements Comperation
Field Summary |
private java.io.File |
copyAs
|
private java.io.File |
file
|
private boolean |
inited
|
Constructor Summary |
Copy()
|
Copy(java.io.File file,
java.io.File copyAs)
|
Copy(java.io.File file,
java.lang.String copyAs)
|
Copy(java.lang.String str,
java.lang.String copyAs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inited
private boolean inited
file
private java.io.File file
copyAs
private java.io.File copyAs
Copy
public Copy()
Copy
public Copy(java.io.File file,
java.io.File copyAs)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
Copy
public Copy(java.io.File file,
java.lang.String copyAs)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
Copy
public Copy(java.lang.String str,
java.lang.String copyAs)
throws java.io.IOException
- Throws:
java.io.IOException
requiresCommand
public final boolean requiresCommand()
- Specified by:
requiresCommand
in interface Comperation
argumentsNeeded
public final int argumentsNeeded()
- Specified by:
argumentsNeeded
in interface Comperation
make
public java.lang.String[] make(java.lang.String[] param)
throws java.io.IOException
- Specified by:
make
in interface Comperation
- Throws:
java.io.IOException
giveFiles
public Comperation giveFiles(java.lang.String[] files)
throws java.io.IOException
- Specified by:
giveFiles
in interface Comperation
- Throws:
java.io.IOException
isInited
public boolean isInited()
- Specified by:
isInited
in interface Comperation
perform
public boolean perform()
throws java.io.IOException
- Specified by:
perform
in interface Comperation
- Throws:
java.io.IOException