public class FileCopy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DO_OVERWRITE |
static int |
NO_OVERWRITE |
Constructor and Description |
---|
FileCopy() |
Modifier and Type | Method and Description |
---|---|
static boolean |
copy(java.io.File sourceFile,
java.io.File destinationDirectory,
java.lang.String destFileName)
Copies a File to another directory
|
static boolean |
copy(java.io.InputStream in,
java.io.File destinationDirectory,
java.lang.String destFileName) |
static boolean |
copy(java.io.InputStream in,
java.io.OutputStream out) |
static boolean |
copy(java.lang.String source,
java.lang.String destDirectory) |
static boolean |
copy(java.lang.String source,
java.lang.String destDirectory,
java.lang.String destFileName) |
static boolean |
doCopy(java.io.File file)
True if file
|
public static final int DO_OVERWRITE
public static final int NO_OVERWRITE
public static boolean copy(java.io.File sourceFile, java.io.File destinationDirectory, java.lang.String destFileName) throws java.io.IOException
sourceFile
- destinationDirectory
- destFileName
- java.io.IOException
public static boolean copy(java.io.InputStream in, java.io.File destinationDirectory, java.lang.String destFileName) throws java.io.IOException
java.io.IOException
public static boolean copy(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static boolean copy(java.lang.String source, java.lang.String destDirectory, java.lang.String destFileName) throws java.io.IOException
java.io.IOException
public static boolean copy(java.lang.String source, java.lang.String destDirectory) throws java.io.IOException
java.io.IOException
public static boolean doCopy(java.io.File file)
file
- File destinationCopyright © 2007-2020 EDIT. All Rights Reserved.