jlibs.core.io
Class ByteArrayOutputStream2
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
jlibs.core.io.ByteArrayOutputStream2
- All Implemented Interfaces:
- Closeable, Flushable
public class ByteArrayOutputStream2
- extends ByteArrayOutputStream
This is an extension of ByteArrayOutputStream.
You can get access to the internal byte buffer using
toByteSequence()
- Author:
- Santhosh Kumar T
ByteArrayOutputStream2
public ByteArrayOutputStream2()
ByteArrayOutputStream2
public ByteArrayOutputStream2(int size)
ByteArrayOutputStream2
public ByteArrayOutputStream2(InputStream is,
int readBuffSize,
boolean close)
throws IOException
- Throws:
IOException
toByteSequence
public ByteSequence toByteSequence()
- Returns the input data as
ByteSequence.
Note that the internal buffer is not copied.
readFrom
public int readFrom(InputStream is,
int readBuffSize,
boolean close)
throws IOException
- Throws:
IOException
Copyright © 2018. All rights reserved.