|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjtools.TextFile
public class TextFile
Provides support for storing text in a disk file.
| Constructor Summary | |
|---|---|
TextFile(java.lang.String fileName)
Constructor for TextFile with a parameter that specifies the disk file where text is to be read from and written to. |
|
| Method Summary | |
|---|---|
java.lang.String |
readAll()
Reads the entire contents of a disk file into a String. |
void |
writeAll(java.lang.String s)
Writes an entire String to disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextFile(java.lang.String fileName)
throws java.io.IOException
TextFile with a parameter that specifies the disk file where text is to be read from and written to.
fileName - a file pathname string
java.io.IOException| Method Detail |
|---|
public java.lang.String readAll()
throws java.io.IOException
String.
String object containing an entire file
java.io.IOException
public void writeAll(java.lang.String s)
throws java.io.IOException
String to disk.
s - a string of data to be written to disk
java.io.IOException
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||