org.apache.openejb.loader
Class FileUtils

java.lang.Object
  extended by org.apache.openejb.loader.FileUtils

public class FileUtils
extends Object


Constructor Summary
FileUtils(String homeDir, String defaultDir, Hashtable env)
           
 
Method Summary
static void copyFile(File destination, File source)
           
static void copyFile(File destination, File source, boolean deleteSourceFile)
           
static File createTempDirectory()
           
static File createTempDirectory(String pathPrefix)
           
 boolean equals(Object obj)
           
 File getDirectory()
           
 File getDirectory(String path)
           
 File getDirectory(String path, boolean create)
           
 File getFile(String path)
           
 File getFile(String path, boolean validate)
           
 void setDirectory(File dir)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils(String homeDir,
                 String defaultDir,
                 Hashtable env)
Method Detail

getDirectory

public File getDirectory(String path)
                  throws IOException
Throws:
IOException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getDirectory

public File getDirectory(String path,
                         boolean create)
                  throws IOException
Throws:
IOException

getDirectory

public File getDirectory()

setDirectory

public void setDirectory(File dir)

getFile

public File getFile(String path)
             throws FileNotFoundException,
                    IOException
Throws:
FileNotFoundException
IOException

getFile

public File getFile(String path,
                    boolean validate)
             throws FileNotFoundException,
                    IOException
Throws:
FileNotFoundException
IOException

createTempDirectory

public static File createTempDirectory(String pathPrefix)
                                throws IOException
Throws:
IOException

createTempDirectory

public static File createTempDirectory()
                                throws IOException
Throws:
IOException

copyFile

public static void copyFile(File destination,
                            File source)
                     throws IOException
Throws:
IOException

copyFile

public static void copyFile(File destination,
                            File source,
                            boolean deleteSourceFile)
                     throws IOException
Throws:
IOException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.