org.sandev.basics.util
Class FileUtil

java.lang.Object
  extended by org.sandev.basics.util.FileUtil

public class FileUtil
extends java.lang.Object

Common file manipulation utilities.


Constructor Summary
FileUtil()
           
 
Method Summary
static void copyfile(java.lang.String currpath, java.lang.String filename, java.lang.String newpath)
          Copy the specified file from the old location to the new location.
static java.lang.String normalizeDirString(java.lang.String dirspec)
          Make sure the given directory specification works for our current environment and ends with a file separator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

copyfile

public static void copyfile(java.lang.String currpath,
                            java.lang.String filename,
                            java.lang.String newpath)
                     throws java.io.IOException
Copy the specified file from the old location to the new location.

Throws:
java.io.IOException

normalizeDirString

public static java.lang.String normalizeDirString(java.lang.String dirspec)
Make sure the given directory specification works for our current environment and ends with a file separator.