|
Snapper 3.0 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.snapper.parsers.fileparsers.utils.ReadWriteTextFile
public class ReadWriteTextFile
Constructor Summary | |
---|---|
ReadWriteTextFile()
|
Method Summary | |
---|---|
static java.lang.String |
getContents(java.io.File aFile,
int characterLimit)
Fetch the entire contents of a text file, and return it in a String. |
static void |
setContents(java.io.File aFile,
java.lang.String aContents)
Change the contents of text file in its entirety, overwriting any existing text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadWriteTextFile()
Method Detail |
---|
public static java.lang.String getContents(java.io.File aFile, int characterLimit) throws FileParserException
aFile
- is a file which already exists and can be read.
FileParserException
public static void setContents(java.io.File aFile, java.lang.String aContents) throws java.io.FileNotFoundException, java.io.IOException
aFile
- is an existing file which can be written to.
java.lang.IllegalArgumentException
- if param does not comply.
java.io.FileNotFoundException
- if the file does not exist.
java.io.IOException
- if problem encountered during write.
|
Snapper 3.0 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |