public interface RandomAccessOutputStream
| Modifier and Type | Method and Description |
|---|---|
int |
size()
Gets a value indicating the size of this OutputStream.
|
java.io.OutputStream |
subStream(int position,
int length)
Creates a new fixed-size OutputStream starting at the given position in this OutputStream and of the given length.
|
void |
write(byte[] buffer,
int bufferOffset,
int length,
int position)
Writes a sequence of bytes at the given position.
|
void |
write(int byteValue,
int position)
Writes the given byte value at the given position.
|
void write(int byteValue,
int position)
throws java.io.IOException
byteValue - The value to write.position - The position to write at.java.io.IOException - If an IO Exception occurred.java.lang.IndexOutOfBoundsException - If position is outside of the current bounds of this object.void write(byte[] buffer,
int bufferOffset,
int length,
int position)
throws java.io.IOException
buffer - The buffer to write from.bufferOffset - The offset within the buffer to start at.length - The number of bytes to write.position - The position within the OutputStream to write at.java.io.IOException - If an IO Exception occurred.java.lang.IndexOutOfBoundsException - If bufferOffset and length are invalid for the given buffer or if position is
invalid for the current OutputStream's state.java.io.OutputStream subStream(int position,
int length)
position - The position to start at.length - The length of the OutputStream.java.lang.IndexOutOfBoundsException - If position or position + length are outside of the current bounds of this object.int size()