edu.stanford.nlp.io
Class FileCopier
java.lang.Object
|
+--edu.stanford.nlp.io.FileCopier
- public class FileCopier
- extends Object
Static class for copying Files (oddly not supported by java.io.File).
- Author:
- Joseph Smarr (jsmarr@stanford.edu)
Method Summary |
static void |
copyFile(File inFile,
File outFile)
Copies the contents of the given input file to the given output file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyFile
public static void copyFile(File inFile,
File outFile)
throws FileNotFoundException,
IOException
- Copies the contents of the given input file to the given output file.
Does nothing if inFile and outFile are the same file.
- Throws:
FileNotFoundException
- if the input file can't be found.
IOException
- if an I/O exception occurs while reading/writing.
Stanford NLP Group