edu.ucsb.nceas.morpho.framework
Class FileUtils

java.lang.Object
  |
  +--edu.ucsb.nceas.morpho.framework.FileUtils

public class FileUtils
extends java.lang.Object

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

DELIMITER

public static final java.lang.String DELIMITER
Constructor Detail

FileUtils

public FileUtils()
Method Detail

copy

public static void copy(java.io.File inputFile,
                        java.io.File outputFile)
                 throws java.io.IOException
Copy one file to another, given Files as inputs
Parameters:
inputFile - the source file for the copy
outputFile - the destination file for the copy

copy

public static void copy(java.lang.String src,
                        java.lang.String dest)
                 throws java.io.IOException
Copy one file to another, given their file names as inputs
Parameters:
src - the source file for the copy
dest - the destination file for the copy

copy

public static void copy(java.io.File inputFile,
                        java.io.File outputFile,
                        java.util.Hashtable tokens)
                 throws java.io.IOException
Copy one file to another, given Files as inputs, and substitute special tokens with their corresponding values
Parameters:
inputFile - the source file for the copy
outputFile - the destination file for the copy
tokens - a hash of tokens to be substituted in the dest file

copy

public static void copy(java.lang.String src,
                        java.lang.String dest,
                        java.util.Hashtable tokens)
                 throws java.io.IOException
Copy one file to another, given their file names as inputs, and substitute special tokens with their corresponding values
Parameters:
src - the source file for the copy
dest - the destination file for the copy
tokens - a hash of tokens to be substituted in the dest file


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.