|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jqurantree.core.io.FileWriter
public class FileWriter
Utility class which supports writing to a file.
| Constructor Summary | |
|---|---|
FileWriter(java.lang.String filename)
Creates a new file writer by opening the specified file for writing. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the resource. |
void |
write(char ch)
Writes a character to the file. |
void |
write(java.lang.String text)
Writes a string to the file |
void |
writeLine()
Writes a line break to the file. |
void |
writeLine(java.lang.String text)
Writes a new line of text to the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileWriter(java.lang.String filename)
filename - the path and name of the file, e.g. foo/bar.txt| Method Detail |
|---|
public void write(char ch)
ch - the char to writepublic void write(java.lang.String text)
text - the string to writepublic void writeLine()
public void writeLine(java.lang.String text)
text - the line of text to writepublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||