public interface RandomAccess extends RandomAccessRead
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all data of the buffer.
|
void |
write(byte[] b)
Write a buffer of data to the stream.
|
void |
write(byte[] b,
int offset,
int length)
Write a buffer of data to the stream.
|
void |
write(int b)
Write a byte to the stream.
|
available, getPosition, isClosed, isEOF, length, peek, readFully, rewind, seekread, read, readvoid write(int b)
throws IOException
b - The byte to write.IOException - If there is an IO error while writing.void write(byte[] b)
throws IOException
b - The buffer to get the data from.IOException - If there is an error while writing the data.void write(byte[] b,
int offset,
int length)
throws IOException
b - The buffer to get the data from.offset - An offset into the buffer to get the data from.length - The length of data to write.IOException - If there is an error while writing the data.void clear()
throws IOException
IOExceptionCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.