org.merlotxml.util
Class FileUtil

java.lang.Object
  |
  +--org.merlotxml.util.FileUtil

public class FileUtil
extends java.lang.Object

File utilities

Version:
$Id: FileUtil.java,v 1.3 2000/03/10 05:31:17 camk Exp $
Author:
Rick Boykin

Method Summary
static void copyFile(java.io.File from, java.io.File to)
          Utility method to copy a file from one directory to another
static void copyFile(java.lang.String fileName, java.lang.String fromDir, java.lang.String toDir)
          Utility method to copy a file from one directory to another
static java.io.InputStream getInputStream(java.io.File file, java.lang.Class c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyFile

public static void copyFile(java.lang.String fileName,
                            java.lang.String fromDir,
                            java.lang.String toDir)
                     throws java.io.IOException
Utility method to copy a file from one directory to another

copyFile

public static void copyFile(java.io.File from,
                            java.io.File to)
                     throws java.io.IOException
Utility method to copy a file from one directory to another

getInputStream

public static java.io.InputStream getInputStream(java.io.File file,
                                                 java.lang.Class c)
                                          throws java.io.FileNotFoundException