com.ibm.commons.util.io
Class FileUtil

java.lang.Object
  extended by com.ibm.commons.util.io.FileUtil

public class FileUtil
extends java.lang.Object

Utilities for working with files


Method Summary
static void deleteFile(java.io.File file)
          Delete the a file or a directory.
static void emptyDirectory(java.io.File directory)
          Delete the content of a directory, but not the directory itself
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteFile

public static void deleteFile(java.io.File file)
Delete the a file or a directory.

Parameters:
file - the file to delete

emptyDirectory

public static void emptyDirectory(java.io.File directory)
Delete the content of a directory, but not the directory itself

Parameters:
directory - the directory the clear