foundry.io
Class FileUtils
java.lang.Object
|
+--foundry.io.FileUtils
- public class FileUtils
- extends Object
A class containing simple utility methods for working with File
s.
- Version:
- @VERSION@
- Author:
- Laird Nelson
Method Summary |
void |
copy(File source,
File target)
Copies a File to another location, making any intermediate
directories in the process. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
FileUtils
public FileUtils()
copy
public void copy(File source,
File target)
throws IOException
- Copies a
File
to another location, making any intermediate
directories in the process.
- Parameters:
source
- the File
to copytarget
- the File
that should be the result of the copy- Throws:
IOException
- if the source file does not exist, if the
intermediate directories could not be created, if the reading and
writing streams were corrupted, or if other similar types of
errors occur.
Copyright © 2000 - Laird Jarrett Nelson