com.jamonapi.utils
Class FileUtils

java.lang.Object
  |
  +--com.jamonapi.utils.FileUtils

public class FileUtils
extends java.lang.Object

Reusable Utilities used for File manipulations such as reading a file as a String.


Constructor Summary
FileUtils()
           
 
Method Summary
static java.lang.String getFileContents(java.lang.String fileName)
          Read text files contents in as a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

getFileContents

public static java.lang.String getFileContents(java.lang.String fileName)
                                        throws java.io.FileNotFoundException,
                                               java.io.IOException
Read text files contents in as a String. Sample Call: String contents=FileUtils.getFileContents("autoexec.bat");

java.io.FileNotFoundException
java.io.IOException