org.hccp.util
Class FileUtility

java.lang.Object
  |
  +--org.hccp.util.FileUtility

public class FileUtility
extends java.lang.Object

Misc. static utiliy methods for file system I/O.


Constructor Summary
FileUtility()
           
 
Method Summary
static java.lang.String[] getFileLinesAsStringArray(java.io.File file)
          Takes a file and returns a String array, where each element in the array is a line from the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtility

public FileUtility()
Method Detail

getFileLinesAsStringArray

public static java.lang.String[] getFileLinesAsStringArray(java.io.File file)
                                                    throws java.io.IOException
Takes a file and returns a String array, where each element in the array is a line from the file.

Parameters:
file - the file to be read
Returns:
an array of the lines in this file as String objects
Throws:
an - IOException
java.io.IOException