All Packages Class Hierarchy This Package Previous Next Index
Class semper.util.system.FileCopy
java.lang.Object
|
+----semper.util.system.FileCopy
- public final class FileCopy
- extends Object
This class can be used for copying files and/or directories in Java.
I wrote it because, for some reason, there is no java.io.File.copy()
method. It can be used to copy file->file, file->directory, or
directory->directory. The copy method is static, and thus this class
should not be instantiated.
You may study, use, modify, and distribute this code for any purpose.
This code is provided WITHOUT WARRANTY either expressed or
implied.
Download the source, or the compiled
class.
Jamie Hall, copyright (c) 1996.
[email protected]
http://www.mhv.net/~jamihall
- Version:
- 1.1, January 1, 1996
- Author:
- Jamie Hall
-
copy(File, File)
- Copy files and/or directories.
copy
public static void copy(File src,
File dest) throws IOException
- Copy files and/or directories.
- Parameters:
- src - source file or directory
- dest - destination file or directory
- Throws: IOException
- if operation fails
All Packages Class Hierarchy This Package Previous Next Index