public class StringPrintWriter
extends java.io.PrintWriter
Constructor and Description |
---|
StringPrintWriter() |
Modifier and Type | Method and Description |
---|---|
void |
reset()
Resets the internal string buffer to empty.
|
int |
size()
The number of characters printed to the string
buffer so far.
|
char[] |
toCharArray()
Return the string buffer as a character array.
|
java.lang.String |
toString()
Returns the characters printed so far as a string
|
void |
writeTo(java.io.Writer out)
Sends the characters printed so far to another Writer.
|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
public void reset()
public int size()
public char[] toCharArray()
public java.lang.String toString()
toString
in class java.lang.Object
public void writeTo(java.io.Writer out) throws java.io.IOException
out
- the destination writerjava.io.IOException
- If an I/O error occurs.