public class UnsyncByteArrayOutputStream
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
myBuffer |
protected int |
myCount |
Constructor and Description |
---|
UnsyncByteArrayOutputStream() |
UnsyncByteArrayOutputStream(byte[] buffer) |
UnsyncByteArrayOutputStream(int size) |
Modifier and Type | Method and Description |
---|---|
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
ByteArraySequence |
toByteArraySequence() |
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
void |
write(byte [] b,
int off,
int len) |
void |
write(int b) |
void |
writeTo(java.io.OutputStream out) |
public UnsyncByteArrayOutputStream()
public UnsyncByteArrayOutputStream(int size)
public UnsyncByteArrayOutputStream(byte[] buffer)
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()
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public ByteArraySequence toByteArraySequence()
public java.io.InputStream toInputStream()