Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.merlotxml.util
Class FileUtil  view FileUtil download FileUtil.java

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

public class FileUtil
extends java.lang.Object

File utilities

Version:
$Id: FileUtil.java,v 1.1.1.1 2001/07/02 15:41:28 flament Exp $

Constructor Summary
private FileUtil()
           
 
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
 

Constructor Detail

FileUtil

private FileUtil()
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