org.merlotxml.util
Class FileUtil

java.lang.Object
  extended byorg.merlotxml.util.FileUtil

public class FileUtil
extends java.lang.Object

File utilities

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

Throws:
java.io.IOException

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

Throws:
java.io.IOException

getInputStream

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