| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final int[] | |
| private final byte[][] | |
| private static final int | |
| protected int | |
| private final InputStream | |
| private boolean | |
| private boolean | |
| private static final int | |
| private static final Log | |
| private static final int | |
| protected long | |
| protected long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public RandomAccessReadView | createView(long
start position within the underlying random access read startPosition, long stream length streamLength)Implements org. Creates a random access read view starting at the given position with the given length. |
| private boolean | |
| public long | getPosition()
Implements org. Returns offset of next byte to be returned by a read method. |
| public boolean | isClosed()
Implements org. Returns true if this source has been closed. |
| public boolean | isEOF()
Implements org. A simple test to see if we are at the end of the data. |
| public long | length()
Implements org. The total number of bytes that are available. |
| public int | |
| public int | read(byte[]
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)Implements org. Read a buffer of data. |
| public void | rewind(int
the number of bytes to be seeked backwards bytes)Overrides default org. Seek backwards the given number of bytes. |
| public void | seek(long
The position to seek to. position)Implements org. Seek to a position in the data. |
| public void | skip(int
the number of bytes to be skipped length)Overrides default org. Skips a given number of bytes. |
| private void |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| bufferBytes | back to summary |
|---|---|
| private final int[] bufferBytes | |
| buffers | back to summary |
|---|---|
| private final byte[][] buffers | |
| CURRENT | back to summary |
|---|---|
| private static final int CURRENT | |
| currentBufferPointer | back to summary |
|---|---|
| protected int currentBufferPointer | |
| is | back to summary |
|---|---|
| private final InputStream is | |
| isClosed | back to summary |
|---|---|
| private boolean isClosed | |
| isEOF | back to summary |
|---|---|
| private boolean isEOF | |
| LAST | back to summary |
|---|---|
| private static final int LAST | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| NEXT | back to summary |
|---|---|
| private static final int NEXT | |
| position | back to summary |
|---|---|
| protected long position | |
| size | back to summary |
|---|---|
| protected long size | |
| NonSeekableRandomAccessReadInputStream | back to summary |
|---|---|
| public NonSeekableRandomAccessReadInputStream(InputStream inputStream) Default constructor. | |
| checkClosed | back to summary |
|---|---|
| protected void checkClosed() throws IOException Ensure that the RandomAccessBuffer is not closed
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| createView | back to summary |
|---|---|
| public RandomAccessReadView createView(long startPosition, long streamLength) throws IOException Implements org. Doc from org. Creates a random access read view starting at the given position with the given length.
| |
| fetch | back to summary |
|---|---|
| private boolean fetch() throws IOException | |
| getPosition | back to summary |
|---|---|
| public long getPosition() throws IOException Implements org. Doc from org. Returns offset of next byte to be returned by a read method.
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements org. Doc from org. Returns true if this source has been closed.
| |
| isEOF | back to summary |
|---|---|
| public boolean isEOF() throws IOException Implements org. Doc from org. A simple test to see if we are at the end of the data.
| |
| length | back to summary |
|---|---|
| public long length() throws IOException Implements org. Doc from org. The total number of bytes that are available.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements org. Doc from org. Read a single byte of data.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int offset, int length) throws IOException Implements org. Doc from org. Read a buffer of data.
| |
| rewind | back to summary |
|---|---|
| public void rewind(int bytes) throws IOException Overrides default org. Doc from org. Seek backwards the given number of bytes.
| |
| seek | back to summary |
|---|---|
| public void seek(long position) throws IOException Implements org. Doc from org. Seek to a position in the data.
| |
| skip | back to summary |
|---|---|
| public void skip(int length) throws IOException Overrides default org. Doc from org. Skips a given number of bytes.
| |
| switchBuffers | back to summary |
|---|---|
| private void switchBuffers(int firstBuffer, int secondBuffer) | |