org.incava.io
Class FileExt

java.lang.Object
  extended by org.incava.io.FileExt

public class FileExt
extends java.lang.Object


Constructor Summary
FileExt()
           
 
Method Summary
static java.lang.String readFile(java.io.File file, java.lang.String arg)
          Reads the file into a single string, which is null on error.The arg argument is just so we can overload based on return type.
static java.lang.String[] readFile(java.io.File file, java.lang.String[] arg)
          Reads the file into a string array, without end-of-line characters (sequences).
static java.lang.String readFile(java.lang.String fileName, java.lang.String arg)
          Reads the file into a single string, which is null on error.
static java.lang.String[] readFile(java.lang.String fileName, java.lang.String[] arg)
          Reads the file into a string array, without end-of-line characters (sequences).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileExt

public FileExt()
Method Detail

readFile

public static java.lang.String readFile(java.lang.String fileName,
                                        java.lang.String arg)
Reads the file into a single string, which is null on error. The returned string will contain end-of-line characters. The arg argument is just so we can overload based on return type.


readFile

public static java.lang.String[] readFile(java.lang.String fileName,
                                          java.lang.String[] arg)
Reads the file into a string array, without end-of-line characters (sequences). The array is null on error. The arg argument is just so we can overload based on return type.


readFile

public static java.lang.String readFile(java.io.File file,
                                        java.lang.String arg)
Reads the file into a single string, which is null on error.The arg argument is just so we can overload based on return type.


readFile

public static java.lang.String[] readFile(java.io.File file,
                                          java.lang.String[] arg)
Reads the file into a string array, without end-of-line characters (sequences). The arg argument is just so we can overload based on return type.