public class BerByteArrayOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
BerByteArrayOutputStream(byte[] buffer) |
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) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getArray()
Returns a new array containing the subarray of the stream array that contains the coded content.
|
java.nio.ByteBuffer |
getByteBuffer() |
void |
reset() |
void |
write(byte arg0) |
void |
write(byte[] byteArray) |
void |
write(int arg0) |
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)
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.OutputStreamjava.io.IOExceptionpublic void write(byte arg0)
throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] byteArray)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic byte[] getArray()
public java.nio.ByteBuffer getByteBuffer()
public void reset()