Return to www.inductionframework.org

com.acciente.commons.io
Class FileUtils

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

public class FileUtils
extends java.lang.Object

A collection of general purpose file utils.

Author:
Adinath Raveendra Raj

Constructor Summary
FileUtils()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

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 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:
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 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:
java.io.IOException

Return to www.inductionframework.org

Copyright © 2008-2011 Acciente, LLC. All Rights Reserved.