org.stringtree.util
Class FileReadingUtils

java.lang.Object
  extended by org.stringtree.util.FileReadingUtils

public class FileReadingUtils
extends java.lang.Object


Constructor Summary
FileReadingUtils()
           
 
Method Summary
static byte[] readBytes(java.io.File file)
           
static byte[] readBytes(java.io.File file, boolean reportExceptions)
          A fixed size buffer, eww, that's like all those old C programs.
static byte[] readBytes(java.lang.String filename)
           
static java.lang.String readFile(java.io.File file)
           
static java.lang.String readFile(java.io.File root, java.lang.String filename)
           
static java.lang.String readFile(java.lang.String filename)
           
static java.lang.String readFile(java.lang.String root, java.lang.String filename)
           
static java.lang.String readRawFile(java.io.File file)
           
static java.lang.String readRawFile(java.io.File file, boolean reportExceptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReadingUtils

public FileReadingUtils()
Method Detail

readRawFile

public static java.lang.String readRawFile(java.io.File file,
                                           boolean reportExceptions)

readRawFile

public static java.lang.String readRawFile(java.io.File file)

readFile

public static java.lang.String readFile(java.io.File file)

readFile

public static java.lang.String readFile(java.io.File root,
                                        java.lang.String filename)

readFile

public static java.lang.String readFile(java.lang.String root,
                                        java.lang.String filename)

readFile

public static java.lang.String readFile(java.lang.String filename)

readBytes

public static byte[] readBytes(java.io.File file,
                               boolean reportExceptions)
A fixed size buffer, eww, that's like all those old C programs. Buffer overrun city, here we come :(


readBytes

public static byte[] readBytes(java.io.File file)

readBytes

public static byte[] readBytes(java.lang.String filename)