org.jdesktop.wonderland.common
Class FileUtils

java.lang.Object
  extended by org.jdesktop.wonderland.common.FileUtils

public class FileUtils
extends java.lang.Object

Author:
paulby

Constructor Summary
FileUtils()
           
 
Method Summary
static void copyFile(java.io.InputStream in, java.io.OutputStream out)
          Copy the file from in to out
static void deleteDirContents(java.io.File dir)
          Recursively delete the content of the supplied directory
static java.io.File findDir(java.io.File start, java.lang.String string)
          Traverse from start, looking for a directory named string
static java.lang.String getFileExtension(java.lang.String filename)
          Returns the extension of the filename, or null if there is no extension
 
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

getFileExtension

public static java.lang.String getFileExtension(java.lang.String filename)
Returns the extension of the filename, or null if there is no extension

Parameters:
filename -
Returns:

copyFile

public static void copyFile(java.io.InputStream in,
                            java.io.OutputStream out)
                     throws java.io.IOException
Copy the file from in to out

Parameters:
in -
out -
Throws:
java.io.IOException

deleteDirContents

public static void deleteDirContents(java.io.File dir)
Recursively delete the content of the supplied directory

Parameters:
dir -

findDir

public static java.io.File findDir(java.io.File start,
                                   java.lang.String string)
Traverse from start, looking for a directory named string

Parameters:
start -
string -
Returns:


Open Wonderland - http://openwonderland.org