public class DirectByteArrayOutputStream extends ByteArrayOutputStream
ByteArrayOutputStream by allowing direct access to the
internal byte buffer.buf, count| Constructor and Description |
|---|
DirectByteArrayOutputStream()
Creates a new instance with a buffer of the default size.
|
DirectByteArrayOutputStream(int capacity)
Creates a new instance with a buffer of the given initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBuffer()
Gets the internal byte buffer.
|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic DirectByteArrayOutputStream()
public DirectByteArrayOutputStream(int capacity)
capacity - Initial capacity of internal buffer.Copyright © 2016 JBoss by Red Hat. All rights reserved.