public class StringOutputStream
extends java.io.OutputStream
OutputStream
which collects all data into a String
Constructor and Description |
---|
StringOutputStream()
Unlike
StringInputStream , it won't take
the first byte to be the length. |
StringOutputStream(int offset) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
void |
write(int b) |
public StringOutputStream(int offset)
offset
- Number of bytes to leave out at the beginningpublic StringOutputStream()
StringInputStream
, it won't take
the first byte to be the length. To void said
byte, use new StringOutputStream(1)