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, writeTo
flush, write
public ByteArrayOutputStream2()
public ByteArrayOutputStream2(int size)
public byte[] getBuffer()
public void readFrom(InputStream is) throws IOException
InputStream
completely into the buffer.IOException
Copyright © 2004–2022. All rights reserved.