|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.morpho.framework.FileUtils
This class provides convenience methods for manipulating filesystem objects, such as copying from one file to another.
Field Summary | |
static java.lang.String |
DELIMITER
|
Constructor Summary | |
FileUtils()
|
Method Summary | |
static void |
copy(java.io.File inputFile,
java.io.File outputFile)
Copy one file to another, given Files as inputs |
static void |
copy(java.io.File inputFile,
java.io.File outputFile,
java.util.Hashtable tokens)
Copy one file to another, given Files as inputs, and substitute special tokens with their corresponding values |
static void |
copy(java.lang.String src,
java.lang.String dest)
Copy one file to another, given their file names as inputs |
static void |
copy(java.lang.String src,
java.lang.String dest,
java.util.Hashtable tokens)
Copy one file to another, given their file names as inputs, and substitute special tokens with their corresponding values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DELIMITER
Constructor Detail |
public FileUtils()
Method Detail |
public static void copy(java.io.File inputFile, java.io.File outputFile) throws java.io.IOException
inputFile
- the source file for the copyoutputFile
- the destination file for the copy
java.io.IOException
public static void copy(java.lang.String src, java.lang.String dest) throws java.io.IOException
src
- the source file for the copydest
- the destination file for the copy
java.io.IOException
public static void copy(java.io.File inputFile, java.io.File outputFile, java.util.Hashtable tokens) throws java.io.IOException
inputFile
- the source file for the copyoutputFile
- the destination file for the copytokens
- a hash of tokens to be substituted in the dest file
java.io.IOException
public static void copy(java.lang.String src, java.lang.String dest, java.util.Hashtable tokens) throws java.io.IOException
src
- the source file for the copydest
- the destination file for the copytokens
- a hash of tokens to be substituted in the dest file
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |