public class NonSyncByteArrayOutputStream extends ByteArrayOutputStream
buf, count| Constructor and Description |
|---|
NonSyncByteArrayOutputStream() |
NonSyncByteArrayOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
int |
getLength() |
void |
reset() |
void |
setWritePosition(int writePosition) |
void |
write(byte[] b,
int off,
int len) |
void |
write(DataInput in,
int length) |
void |
write(int b) |
void |
writeTo(OutputStream out) |
close, size, toByteArray, toString, toString, toStringflush, writepublic NonSyncByteArrayOutputStream(int size)
public NonSyncByteArrayOutputStream()
public byte[] getData()
public int getLength()
public void setWritePosition(int writePosition)
public void reset()
reset in class ByteArrayOutputStreampublic void write(DataInput in, int length) throws IOException
IOExceptionpublic void write(int b)
write in class ByteArrayOutputStreampublic void write(byte[] b,
int off,
int len)
write in class ByteArrayOutputStreampublic void writeTo(OutputStream out) throws IOException
writeTo in class ByteArrayOutputStreamIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.