com.acciente.commons.io
Class FileUtils

java.lang.Object
  extended by com.acciente.commons.io.FileUtils

public class FileUtils
extends Object

A collection of general purpose file utils.

Author:
Adinath Raveendra Raj

Constructor Summary
FileUtils()
           
 
Method Summary
static File createTempDir(String sPrefix, String sSuffix)
          Creates a temp directory
static File createTempDir(String sPrefix, String sSuffix, File oRootDir)
          Creates a temp directory
 
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

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 used
sSuffix - 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 used
sSuffix - an optional suffix for the temp directory name, if not specified no suffix is used
oRootDir - 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.