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