org.mbari.siam.utils
Class FileUtils

java.lang.Object
  extended by org.mbari.siam.utils.FileUtils

public class FileUtils
extends java.lang.Object

Various file manipulation utilities.


Constructor Summary
FileUtils()
           
 
Method Summary
static boolean compareFile(java.lang.String file1, java.lang.String file2)
           
static void copyFile(java.io.InputStream in, java.lang.String destinationName)
          Copy specified file to specified destination.
static void copyFile(java.lang.String sourceName, java.lang.String destinationName)
          Copy specified file to specified destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

compareFile

public static boolean compareFile(java.lang.String file1,
                                  java.lang.String file2)
                           throws java.io.FileNotFoundException,
                                  java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

copyFile

public static void copyFile(java.lang.String sourceName,
                            java.lang.String destinationName)
                     throws java.io.FileNotFoundException,
                            java.io.IOException
Copy specified file to specified destination.

Throws:
java.io.FileNotFoundException
java.io.IOException

copyFile

public static void copyFile(java.io.InputStream in,
                            java.lang.String destinationName)
                     throws java.io.FileNotFoundException,
                            java.io.IOException
Copy specified file to specified destination.

Throws:
java.io.FileNotFoundException
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.