org.apache.openejb.loader
Class FileUtils

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

public class FileUtils
extends java.lang.Object


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

Constructor Detail

FileUtils

public FileUtils(java.lang.String homeDir,
                 java.lang.String defaultDir,
                 java.util.Hashtable env)
Method Detail

getDirectory

public java.io.File getDirectory(java.lang.String path)
                          throws java.io.IOException
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getDirectory

public java.io.File getDirectory(java.lang.String path,
                                 boolean create)
                          throws java.io.IOException
Throws:
java.io.IOException

getDirectory

public java.io.File getDirectory()

setDirectory

public void setDirectory(java.io.File dir)

getFile

public java.io.File getFile(java.lang.String path)
                     throws java.io.FileNotFoundException,
                            java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

getFile

public java.io.File getFile(java.lang.String path,
                            boolean validate)
                     throws java.io.FileNotFoundException,
                            java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

createTempDirectory

public static java.io.File createTempDirectory(java.lang.String pathPrefix)
                                        throws java.io.IOException
Throws:
java.io.IOException

createTempDirectory

public static java.io.File createTempDirectory()
                                        throws java.io.IOException
Throws:
java.io.IOException

copyFile

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

copyFile

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


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