public class StringOutputStream extends OutputStream implements Serializable
Based on: http://kickjava.com/src/jodd/util/StringOutputStream.java.htm Thank you!
| Constructor and Description |
|---|
StringOutputStream()
Creates new StringOutputStream, makes a new internal StringBuffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getString()
Returns string from the underlying buffer
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flushpublic StringOutputStream()
public String getString()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic void write(byte[] b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void write(int b)
write in class OutputStreamCopyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.