public class StringOutputStream extends OutputStream implements Serializable
StringOutputStream.| Constructor and Description |
|---|
StringOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Charset |
getCharset()
Gets the charset that is used for write in this
StringOutputStream object. |
String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
write(String value)
Write the given
String object to this StringOutputStream object. |
flushpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic Charset getCharset()
StringOutputStream object. Note: if
not set the default charset of "UTF-8" will be taken.StringOutputStream object.public void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void write(int b)
write in class OutputStreampublic void write(String value) throws IOException
String object to this StringOutputStream object.value - the valueIOException - Signals that an I/O exception has occurred.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.