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.OutputStream
public void write(byte[] b, int off, int len)
write
in class java.io.OutputStream
public void writeTo(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void reset()
public byte[] toByteArray()
protected byte[] copyOf(int newLength)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String charsetName) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException