its.util
Class FileUtils

java.lang.Object
  extended byits.util.FileUtils

public class FileUtils
extends java.lang.Object


Constructor Summary
FileUtils()
           
 
Method Summary
static boolean deleteTree(java.io.File dir)
           
static byte[] loadContents(java.io.File f)
           
static java.util.List loadLines(java.io.File f)
           
static java.util.List loadLines(java.io.InputStream is)
           
static java.util.List loadLines(java.io.Reader r)
           
 
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

deleteTree

public static boolean deleteTree(java.io.File dir)
Returns:
true unless input parameter not a directoty file, in which case false

loadLines

public static java.util.List loadLines(java.io.File f)
                                throws java.io.IOException
Throws:
java.io.IOException

loadLines

public static java.util.List loadLines(java.io.InputStream is)
                                throws java.io.IOException
Throws:
java.io.IOException

loadLines

public static java.util.List loadLines(java.io.Reader r)
                                throws java.io.IOException
Throws:
java.io.IOException

loadContents

public static byte[] loadContents(java.io.File f)
                           throws java.io.IOException
Throws:
java.io.IOException