net.damf.generic.fileHandle
Class Copy

java.lang.Object
  extended by net.damf.generic.fileHandle.Copy

public class Copy
extends java.lang.Object


Constructor Summary
Copy(java.io.File[] files, java.io.File[] copyAs)
           
Copy(java.io.File file, java.io.File copyAs)
           
Copy(java.io.File dir, java.io.File copyTo, boolean onlyWriteIfNew)
           
 
Method Summary
private  void copy1(java.io.File file, java.io.File copyAs)
           
private  void copy1(java.io.File file, java.io.File copyAs, boolean onlyWriteIfNew)
           
private  void copyRecursive(java.io.File dir, java.io.File copyTo, boolean onlyWriteIfNew)
           
private  boolean ensurePath(java.io.File dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Copy

public Copy(java.io.File[] files,
            java.io.File[] copyAs)
     throws java.io.IOException
Throws:
java.io.IOException

Copy

public Copy(java.io.File dir,
            java.io.File copyTo,
            boolean onlyWriteIfNew)

Copy

public Copy(java.io.File file,
            java.io.File copyAs)
     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

copyRecursive

private void copyRecursive(java.io.File dir,
                           java.io.File copyTo,
                           boolean onlyWriteIfNew)

copy1

private void copy1(java.io.File file,
                   java.io.File copyAs)
            throws java.io.IOException
Throws:
java.io.IOException

copy1

private void copy1(java.io.File file,
                   java.io.File copyAs,
                   boolean onlyWriteIfNew)
            throws java.io.IOException
Throws:
java.io.IOException

ensurePath

private boolean ensurePath(java.io.File dir)