unc.cdva.utils
Class TextFileReader

java.lang.Object
  extended by unc.cdva.utils.TextFileReader

public class TextFileReader
extends java.lang.Object

Utility class that helps you to read a text file from the hard drive

Author:
Guillaune Conte

Constructor Summary
TextFileReader()
           
 
Method Summary
static java.lang.String getContents(java.lang.String file)
          Fetch the entire contents of a text file, and return it in a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileReader

public TextFileReader()
Method Detail

getContents

public static java.lang.String getContents(java.lang.String file)
Fetch the entire contents of a text file, and return it in a String.

Parameters:
file - is a file which already exists and can be read.