| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final byte[] | |
| private final long | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| pack-priv | RandomAccessReadDataStream(RandomAccessRead
source to be read from. Caller should close it. randomAccessRead)Constructor. |
| pack-priv | RandomAccessReadDataStream(InputStream
source to be read from. Caller should close it. inputStream)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public RandomAccessRead | createSubView(long length)
Overrides org. Creates a view from current position to |
| public long | Returns: The current position in the stream.Implements abstract org. Get the current position in the stream. |
| public InputStream | getOriginalData()
Implements abstract org. This will get the original data file that was used for this stream. |
| public long | getOriginalDataSize()
Implements abstract org. This will get the original data size that was used for this stream. |
| public int | Returns: An unsigned byte, or -1, signalling 'no more data'Implements abstract org. Read an unsigned byte. |
| public int | Returns: The number of bytes read or -1, signalling 'no more data'The buffer to write to. b, int The offset into the buffer. off, int The length into the buffer. len)Implements abstract org.
|
| private int | |
| public final long | Returns: eight bytes interpreted as a long.Implements abstract org. Read a signed 64-bit integer. |
| public void | seek(long
The position to seek to. pos)Implements abstract org. Seek into the datasource. |
| currentPosition | back to summary |
|---|---|
| private int currentPosition | |
| data | back to summary |
|---|---|
| private final byte[] data | |
| length | back to summary |
|---|---|
| private final long length | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| RandomAccessReadDataStream | back to summary |
|---|---|
| pack-priv RandomAccessReadDataStream(RandomAccessRead randomAccessRead) throws IOException Constructor.
| |
| RandomAccessReadDataStream | back to summary |
|---|---|
| pack-priv RandomAccessReadDataStream(InputStream inputStream) throws IOException Constructor.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Close the underlying resources.
| |
| createSubView | back to summary |
|---|---|
| public RandomAccessRead createSubView(long length) Overrides org. Doc from org. Creates a view from current position to
| |
| getCurrentPosition | back to summary |
|---|---|
| public long getCurrentPosition() throws IOException Implements abstract org. Get the current position in the stream.
| |
| getOriginalData | back to summary |
|---|---|
| public InputStream getOriginalData() throws IOException Implements abstract org. Doc from org. This will get the original data file that was used for this stream.
| |
| getOriginalDataSize | back to summary |
|---|---|
| public long getOriginalDataSize() Implements abstract org. Doc from org. This will get the original data size that was used for this stream.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract org. Read an unsigned byte.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Implements abstract org.
| |
| readInt | back to summary |
|---|---|
| private int readInt() throws IOException Read a signed 32-bit integer.
| |
| readLong | back to summary |
|---|---|
| public final long readLong() throws IOException Implements abstract org. Read a signed 64-bit integer.
| |
| seek | back to summary |
|---|---|
| public void seek(long pos) throws IOException Implements abstract org. Seek into the datasource.
When the requested
| |