public class ByteArrayOutputStream2 extends ByteArrayOutputStream
ByteArrayOutputStream with access to its raw buffer.buf, count| Constructor and Description |
|---|
ByteArrayOutputStream2() |
ByteArrayOutputStream2(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBuffer() |
void |
readFrom(InputStream is)
Reads the given
InputStream completely into the buffer. |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic ByteArrayOutputStream2()
public ByteArrayOutputStream2(int size)
public byte[] getBuffer()
public void readFrom(InputStream is) throws IOException
InputStream completely into the buffer.IOExceptionCopyright © 2019. All rights reserved.