public class StringWriter
extends java.lang.Object
Constructor and Description |
---|
StringWriter(java.lang.String out)
Give the name of the output file as a String during construction.
|
Modifier and Type | Method and Description |
---|---|
void |
closeFile()
Closes the output file.
|
void |
goToNextLine()
Brings cursor to start of next line in the output file
|
void |
write(java.lang.String s)
Writes given string s to the output file
|
public StringWriter(java.lang.String out)
out
- file to be written topublic void goToNextLine()
public void write(java.lang.String s)
s
- string to write outpublic void closeFile()