|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evanmclean.evlib.io.FileStructureCopier
public class FileStructureCopier
Recursively copies a set of files. Can implement your own error handling.
Constructor Summary | |
---|---|
FileStructureCopier()
|
Method Summary | |
---|---|
boolean |
copy(File from,
File to)
Perform recursive copying. |
protected void |
errorHandler(File from,
File to,
IOException exception)
By default, throws the IOException that was passed in to it. |
protected boolean |
filter(File from,
File to)
Can be overridden to filter which files and folders to copy. |
protected void |
postCopy(File from,
File to)
Can be overridden to perform processing once a file or folder has been successfully copied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileStructureCopier()
Method Detail |
---|
public final boolean copy(File from, File to) throws IOException
from
- to
-
IOException
- Other errors.protected void errorHandler(File from, File to, IOException exception) throws IOException
from
- to
- exception
-
IOException
protected boolean filter(File from, File to)
from
- to
-
protected void postCopy(File from, File to)
from
- to
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |