|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.af.commons.io.FileTransfer
public class FileTransfer
Class for copying and moving files and resources.
| Constructor Summary | |
|---|---|
FileTransfer()
|
|
| Method Summary | |
|---|---|
static void |
copyFile(File in,
File out)
Copy a file. |
File |
copyFileToLocalDir(String name,
File localDir)
|
File |
copyFileToLocalDir(String path,
String name,
File localDir)
|
static File |
copyResourceToLocalDir(URL resource,
String name,
File localDir)
|
static FileTransfer |
getFileTransfer()
|
void |
moveFile(File f,
File targetDir)
Move a file. |
void |
moveFile(File f,
File targetDir,
String name)
Move a file. |
void |
moveFile(File f,
File targetDir,
String name,
boolean overwrite)
Move a file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTransfer()
| Method Detail |
|---|
public static FileTransfer getFileTransfer()
public File copyFileToLocalDir(String name,
File localDir)
throws IOException
IOException
public File copyFileToLocalDir(String path,
String name,
File localDir)
throws IOException
IOException
public static File copyResourceToLocalDir(URL resource,
String name,
File localDir)
throws IOException
IOException
public static void copyFile(File in,
File out)
throws IOException
in - file sourceout - file destination
IOException
public void moveFile(File f,
File targetDir,
String name)
throws IOException
f - file to movetargetDir - directory to that the file should be movedname - new name of the file
IOException
public void moveFile(File f,
File targetDir,
String name,
boolean overwrite)
throws IOException
f - file to movetargetDir - directory to that the file should be movedname - new name of the fileoverwrite - should an existing file be overwritten?
IOException
public void moveFile(File f,
File targetDir)
throws IOException
f - file to movetargetDir - directory to that the file should be moved
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||