com.gisgraphy.helper
Class FileHelper

java.lang.Object
  extended by com.gisgraphy.helper.FileHelper

public class FileHelper
extends java.lang.Object

Some useful method to manage file

Author:
David Masclet

Constructor Summary
FileHelper()
           
 
Method Summary
static java.io.File createTempDir(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHelper

public FileHelper()
Method Detail

createTempDir

public static java.io.File createTempDir(java.lang.String path)
Parameters:
path - The name of the temporary directory to create. A timestamp will be added to make a unique directory, so you can use this method several times with the same path. A common use is to give the name of the class that needs to create the directory.
Returns:
the created directory
Throws:
java.lang.RuntimeException - if we can not write in temporary directory


Copyright © 2010. All Rights Reserved.