org.stringtree.util
Class FileUtils

java.lang.Object
  extended by org.stringtree.util.FileUtils

public class FileUtils
extends java.lang.Object


Constructor Summary
FileUtils()
           
 
Method Summary
static java.io.File ensureDirectory(java.io.File dir)
           
static java.io.File ensureDirectory(java.io.File root, java.lang.String name)
           
static java.io.File ensureDirectory(java.lang.String name)
           
static java.lang.String getLocalFilePath(java.lang.String path)
          extract the local path information from a URL in a form suitable for contructing a File
 
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

ensureDirectory

public static java.io.File ensureDirectory(java.io.File dir)

ensureDirectory

public static java.io.File ensureDirectory(java.lang.String name)

ensureDirectory

public static java.io.File ensureDirectory(java.io.File root,
                                           java.lang.String name)

getLocalFilePath

public static java.lang.String getLocalFilePath(java.lang.String path)
extract the local path information from a URL in a form suitable for contructing a File

Returns:
a string with the '/' replacd by local separators