|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.goerntkai.toolbox.fs.TextReader
Reads a complete text file and returns the whole document.
Method Summary | |
static java.lang.StringBuffer |
getTextDocument(java.io.File documentFile)
This method uses java.io.FileReader to get the content
of the document file. |
static java.lang.StringBuffer |
getTextDocument(java.lang.String documentFile)
This method just calls getTextDocument(java.io.File) to
get the content of the document file. |
static java.lang.String[] |
getTextLines(java.io.File theFile)
Reads the file and stores every line in an array. |
static java.lang.String[] |
getTextLines(java.lang.String theFile)
Reads the file and stores every line in an array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.StringBuffer getTextDocument(java.io.File documentFile) throws java.io.FileNotFoundException
This method uses java.io.FileReader
to get the content
of the document file. The file comes in byte by byte.
documentFile
- the file to read
java.io.FileNotFoundException
- if the file does not exist or is no filepublic static java.lang.StringBuffer getTextDocument(java.lang.String documentFile) throws java.io.FileNotFoundException
This method just calls getTextDocument(java.io.File)
to
get the content of the document file.
documentFile
- the name of the file to read
java.io.FileNotFoundException
- if the file does not exist or is no filegetTextDocument(File)
public static java.lang.String[] getTextLines(java.io.File theFile) throws java.io.FileNotFoundException
Reads the file and stores every line in an array.
theFile
- the file to read
java.io.FileNotFoundException
- if the file does not exist or is no filepublic static java.lang.String[] getTextLines(java.lang.String theFile) throws java.io.FileNotFoundException
Reads the file and stores every line in an array.
theFile
- the file to read
java.io.FileNotFoundException
- if the file does not exist or is no file
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |