public class BerByteArrayOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
BerByteArrayOutputStream(byte[] buffer,
int startingIndex) |
BerByteArrayOutputStream(byte[] buffer,
int startingIndex,
boolean automaticResize) |
BerByteArrayOutputStream(int bufferSize)
Creates a
BerByteArrayOutputStream with a byte array of size bufferSize . |
BerByteArrayOutputStream(int bufferSize,
boolean automaticResize) |
public BerByteArrayOutputStream(int bufferSize)
BerByteArrayOutputStream
with a byte array of size bufferSize
. The buffer
will not be resized automatically. Use BerByteArrayOutputStream(int, boolean)
instead if you want the
buffer to be dynamically resized.bufferSize
- the size of the underlying bufferpublic BerByteArrayOutputStream(int bufferSize, boolean automaticResize)
public BerByteArrayOutputStream(byte[] buffer, int startingIndex)
public BerByteArrayOutputStream(byte[] buffer, int startingIndex, boolean automaticResize)
public void write(int arg0) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte arg0) throws java.io.IOException
java.io.IOException
public void write(byte[] byteArray) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public byte[] getArray()
public java.nio.ByteBuffer getByteBuffer()
public void reset()