public class ByteArrayOutputStream2 extends ByteArrayOutputStream
ByteArrayOutputStream.
You can get access to the internal byte buffer using
toByteSequence()buf, count| Constructor and Description |
|---|
ByteArrayOutputStream2() |
ByteArrayOutputStream2(InputStream is,
int readBuffSize,
boolean close) |
ByteArrayOutputStream2(int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
readFrom(InputStream is,
int readBuffSize,
boolean close) |
ByteSequence |
toByteSequence()
Returns the input data as
ByteSequence.Note that the internal buffer is not copied. |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic ByteArrayOutputStream2()
public ByteArrayOutputStream2(int size)
public ByteArrayOutputStream2(InputStream is, int readBuffSize, boolean close) throws IOException
IOExceptionpublic ByteSequence toByteSequence()
ByteSequence.public int readFrom(InputStream is, int readBuffSize, boolean close) throws IOException
IOExceptionCopyright © 2021. All rights reserved.