public class SerializableByteArrayOutputStream extends SerializableOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
| Constructor and Description |
|---|
SerializableByteArrayOutputStream() |
SerializableByteArrayOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected byte[] |
copyOf(int newLength) |
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String charsetName) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeTo(java.io.OutputStream out) |
public SerializableByteArrayOutputStream()
public SerializableByteArrayOutputStream(int size)
public void write(int b)
write in class java.io.OutputStreampublic void write(byte[] b,
int off,
int len)
write in class java.io.OutputStreampublic void writeTo(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic void reset()
public byte[] toByteArray()
protected byte[] copyOf(int newLength)
public int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String charsetName)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException