net.sf.cantina.util
Class FileUtils

java.lang.Object
  extended bynet.sf.cantina.util.FileUtils

public abstract class FileUtils
extends java.lang.Object

Author:
Stephane JAIS

Constructor Summary
FileUtils()
           
 
Method Summary
static boolean copyFile(java.lang.String source, java.lang.String destination, boolean overwrite)
          copy a file.
static boolean deleteDir(java.io.File dir)
           
 
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

deleteDir

public static boolean deleteDir(java.io.File dir)

copyFile

public static boolean copyFile(java.lang.String source,
                               java.lang.String destination,
                               boolean overwrite)
                        throws java.lang.Exception
copy a file.

Parameters:
source -
destination -
overwrite - Should the destination be overwritten if exists?
Returns:
true if the file was written
Throws:
java.lang.Exception


Copyright © 2004 Cantina. All Rights Reserved.