public class StringPrintWriter extends PrintWriter
out
Constructor and Description |
---|
StringPrintWriter()
Create with the default initial size.
|
StringPrintWriter(int initSize)
Create with an initialize size with the parameter supplied..
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear out the underlying string writer.
|
Reader |
getReader()
Return a reader for the accumulated string.
|
String |
getString()
Return the string in the internal string writer.
|
void |
print(String[] value)
Call print for every string in the array.
|
void |
println(String[] value)
Call println for every string in the array.
|
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 StringPrintWriter()
public StringPrintWriter(int initSize)
public String getString()
public Reader getReader()
public void println(String[] value)
public void print(String[] value)
NullPointerException
- if value is null.public void clear()
Copyright © 2022. All rights reserved.