Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.huguesjohnson
Class FileCopy

    java.lang.Object
      com.huguesjohnson.FileCopy

public abstract class FileCopy
extends java.lang.Object

FileCopy - utility class to copy files and directories

Author:
  Hugues Johnson

Constructor Summary
`FileCopy()`

Method Summary
`static boolean` | `copyDirectory(java.lang.String sourceDirectory, java.lang.String destinationDirectory, boolean recursive)` Copy a directory.
`static boolean` | `copyFile(java.lang.String sourceFile, java.lang.String destinationFile)` Copy a file.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FileCopy

    public FileCopy()

Method Detail

### copyFile

    public static final boolean copyFile(java.lang.String sourceFile,
                                         java.lang.String destinationFile)

  Copy a file.

  Parameters:
    `sourceFile` - The source file to copy.
    `destinationFile` - The destination for the copy.
  Returns:
    True if the operation is successful.

### copyDirectory

    public static final boolean copyDirectory(java.lang.String sourceDirectory,
                                              java.lang.String destinationDirectory,
                                              boolean recursive)

  Copy a directory.

  Parameters:
    `sourceDirectory` - The source directory to copy.
    `destinationDirectory` - The destination for the copy.
    `recursive` - Set to true to copy sub-directories.
  Returns:
    True if the operation is successful.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD