net.damf.console.comperation.fileHandle
Class Copy

java.lang.Object
  extended by 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)
           
 
Method Summary
 int argumentsNeeded()
           
 Comperation giveFiles(java.lang.String[] files)
           
 boolean isInited()
           
 java.lang.String[] make(java.lang.String[] param)
           
 boolean perform()
           
 boolean requiresCommand()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inited

private boolean inited

file

private java.io.File file

copyAs

private java.io.File copyAs
Constructor Detail

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
Method Detail

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