Package com.igormaznitsa.jcp.utils
Class ResetablePrinter
- java.lang.Object
-
- com.igormaznitsa.jcp.utils.ResetablePrinter
-
public class ResetablePrinter extends java.lang.ObjectThe class implements a resetable char printer
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.CharArrayWriteroutStream
-
Constructor Summary
Constructors Constructor Description ResetablePrinter(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSize()booleanisEmpty()voidprint(java.lang.String text)voidprintln(java.lang.String text)voidreset()voidwriteBufferTo(java.io.Writer writer)
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
writeBufferTo
public void writeBufferTo(java.io.Writer writer) throws java.io.IOException- Throws:
java.io.IOException
-
getSize
public int getSize()
-
reset
public void reset()
-
print
public void print(java.lang.String text) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(java.lang.String text) throws java.io.IOException- Throws:
java.io.IOException
-
-