public class TrustedByteArrayOutputStream extends ByteArrayOutputStream
ByteArrayOutputStream
that provides access
to underlying byte array buffer so that it doesn't have to be copiedbuf, count
Constructor and Description |
---|
TrustedByteArrayOutputStream(int initialSize) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer() |
byte[] |
toByteArray() |
void |
write(byte[] b) |
close, reset, size, toString, toString, toString, write, write, writeTo
flush
public TrustedByteArrayOutputStream(int initialSize)
public byte[] getBuffer()
public byte[] toByteArray()
toByteArray
in class ByteArrayOutputStream
public void write(byte[] b)
write
in class OutputStream
Copyright © 2015 Apache Software Foundation. All Rights Reserved.