| Modifier and Type | Method and Description |
|---|---|
| public default int | Returns: the number of bytes that can be readReturns an estimate of the number of bytes that can be read. |
| public RandomAccessReadView | Returns: the random access read viewstart position within the underlying random access read startPosition, long stream length streamLength)Creates a random access read view starting at the given position with the given length. |
| public long | Returns: offset of next byte which will be returned with nextread() (if no more bytes are left it
returns a value >= length of source)Returns offset of next byte to be returned by a read method. |
| public boolean | |
| public boolean | Returns: true if we are at the end of the data.A simple test to see if we are at the end of the data. |
| public long | |
| public default int | Returns: The next byte on the stream, leaving it as available to read.This will peek at the next byte. |
| public int | |
| public default int | Returns: The number of bytes that were actually read.The buffer to write the data to. b)Read a buffer of data. |
| public int | Returns: The number of bytes that were actually read.The buffer to write the data to. b, int Offset into the buffer to start writing. offset, int The amount of data to attempt to read. length)Read a buffer of data. |
| public default void | rewind(int
the number of bytes to be seeked backwards bytes)Seek backwards the given number of bytes. |
| public void | |
| public default void |
| available | back to summary |
|---|---|
| public default int available() throws IOException Returns an estimate of the number of bytes that can be read.
| |
| createView | back to summary |
|---|---|
| public RandomAccessReadView createView(long startPosition, long streamLength) throws IOException Creates a random access read view starting at the given position with the given length.
| |
| getPosition | back to summary |
|---|---|
| public long getPosition() throws IOException Returns offset of next byte to be returned by a read method.
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Returns true if this source has been closed.
| |
| isEOF | back to summary |
|---|---|
| public boolean isEOF() throws IOException A simple test to see if we are at the end of the data.
| |
| length | back to summary |
|---|---|
| public long length() throws IOException The total number of bytes that are available.
| |
| peek | back to summary |
|---|---|
| public default int peek() throws IOException This will peek at the next byte.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Read a single byte of data.
| |
| read | back to summary |
|---|---|
| public default int read(byte[] b) throws IOException Read a buffer of data.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int offset, int length) throws IOException Read a buffer of data.
| |
| rewind | back to summary |
|---|---|
| public default void rewind(int bytes) throws IOException Seek backwards the given number of bytes.
| |
| seek | back to summary |
|---|---|
| public void seek(long position) throws IOException Seek to a position in the data.
| |
| skip | back to summary |
|---|---|
| public default void skip(int length) throws IOException Skips a given number of bytes.
| |