com.acciente.commons.io
Class FileUtils
java.lang.Object
com.acciente.commons.io.FileUtils
public class FileUtils
- extends java.lang.Object
A collection of general purpose file utils.
|
Method Summary |
static java.io.File |
createTempDir(java.lang.String sPrefix,
java.lang.String sSuffix)
Creates a temp directory |
static java.io.File |
createTempDir(java.lang.String sPrefix,
java.lang.String sSuffix,
java.io.File oRootDir)
Creates a temp directory |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
createTempDir
public static java.io.File createTempDir(java.lang.String sPrefix,
java.lang.String sSuffix)
throws java.io.IOException
- Creates a temp directory
- Parameters:
sPrefix - an optional prefix for the temp directory name, if not specified the default value of "tmp" is usedsSuffix - an optional suffix for the temp directory name, if not specified no suffix is used
- Returns:
- a File with the temp directory path
- Throws:
java.io.IOException
createTempDir
public static java.io.File createTempDir(java.lang.String sPrefix,
java.lang.String sSuffix,
java.io.File oRootDir)
throws java.io.IOException
- Creates a temp directory
- Parameters:
sPrefix - an optional prefix for the temp directory name, if not specified the default value of "tmp" is usedsSuffix - an optional suffix for the temp directory name, if not specified no suffix is usedoRootDir - an optional parent directory in which to create the new temp directory
- Returns:
- a File with the temp directory path
- Throws:
java.io.IOException
Copyright (c) 2008 Acciente, LLC. All rights reserved.