com.acciente.commons.io
Class FileUtils
java.lang.Object
com.acciente.commons.io.FileUtils
public class FileUtils
- extends Object
A collection of general purpose file utils.
- Author:
- Adinath Raveendra Raj
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
createTempDir
public static File createTempDir(String sPrefix,
String sSuffix)
throws 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:
IOException
createTempDir
public static File createTempDir(String sPrefix,
String sSuffix,
File oRootDir)
throws 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:
IOException
Copyright © 2008-2013 Acciente, LLC. All Rights Reserved.