Class DirectAccessByteArrayOutputStream
-
- All Implemented Interfaces:
-
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class DirectAccessByteArrayOutputStream extends ByteArrayOutputStream
this is a non thread-safe specialization of java ByteArrayOutputStream it returns the internal buffer if its size matches the byte count
- Since:
3.1
-
-
Constructor Summary
Constructors Constructor Description DirectAccessByteArrayOutputStream(int initialSize)
-
Method Summary
Modifier and Type Method Description Array<byte>
toByteArray()
-
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toString, write, writeBytes, writeTo
-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
toByteArray
Array<byte> toByteArray()
-
-
-
-