org.openejb.util
Class FileUtils

java.lang.Object
  |
  +--org.openejb.util.FileUtils

public class FileUtils
extends java.lang.Object


Constructor Summary
FileUtils()
           
 
Method Summary
static java.io.File createTempDirectory()
          Creates a string for a temporary directory The path prefix is chosen from the system property "java.io.tmpdir" plus a file separator plus the string "openejb"
static java.io.File createTempDirectory(java.lang.String pathPrefix)
          Creates a string for a temporary directory
static java.io.File getDirectory(java.lang.String path)
          Resolves the specifed path reletive to the openejb.home variable
static java.io.File getFile(java.lang.String path)
           
static java.io.File getFile(java.lang.String path, boolean validate)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

getDirectory

public static java.io.File getDirectory(java.lang.String path)
                                 throws java.io.IOException
Resolves the specifed path reletive to the openejb.home variable
Parameters:
path -  
Returns:
 
Throws:
java.io.IOException -  

getFile

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

getFile

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

createTempDirectory

public static java.io.File createTempDirectory(java.lang.String pathPrefix)
                                        throws java.io.IOException
Creates a string for a temporary directory
Parameters:
pathPrefix - the path prefix to for the directory, e.g. /tmp/openejb
Throws:
java.io.IOException - if it can't find a unique directory name after many iterations

createTempDirectory

public static java.io.File createTempDirectory()
                                        throws java.io.IOException
Creates a string for a temporary directory The path prefix is chosen from the system property "java.io.tmpdir" plus a file separator plus the string "openejb"
Throws:
java.io.IOException - if it can't find a unique directory name after many iterations