public class ResetablePrinter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.io.CharArrayWriter |
outStream |
| Constructor and Description |
|---|
ResetablePrinter(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
getSize() |
boolean |
isEmpty() |
void |
print(java.lang.String text) |
void |
println(java.lang.String text) |
void |
reset() |
void |
writeBufferTo(java.io.Writer writer) |
public boolean isEmpty()
public void writeBufferTo(java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionpublic int getSize()
public void reset()
public void print(java.lang.String text)
throws java.io.IOException
java.io.IOExceptionpublic void println(java.lang.String text)
throws java.io.IOException
java.io.IOException