public final class DirectByteArrayOutputStream extends ByteArrayOutputStream
ByteArrayOutputStream
,
which enables to get bytes buffer directly (without memory copy).buf, count
Constructor and Description |
---|
DirectByteArrayOutputStream()
Default constructor.
|
DirectByteArrayOutputStream(int size)
Constructor specifying the size.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBufDirectly() |
int |
getCount() |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
flush, write
Copyright © 2018. All rights reserved.