| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| private long | |
| private int | |
| private boolean | |
| private int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. |
| public void | close()
Overrides java. Implements java. |
| public long | |
| public byte[] | |
| public int | |
| public int | read(final byte[]
the buffer into which the data is read. b, int the start offset in array off, final int b
at which the data is written.length to read, must be a multiple of the stream's record size len)Overrides java. len bytes of data from this input stream
into an array of bytes.
|
| private void | readBlock(final boolean
if false the buffer will not be decompressed. This is an optimization for longer seeks. decompress)Read next block. |
| private void | |
| private byte[] | |
| public byte[] | |
| public void | resetBlockSize(final int
records per block recsPerBlock, final boolean true if the archive is compressed isCompressed)Sets the DumpArchive Buffer's block size. |
| public long | skip(final long
length to read, must be a multiple of the stream's record size len)Overrides java. |
| blockBuffer | back to summary |
|---|---|
| private byte[] blockBuffer | |
| blockSize | back to summary |
|---|---|
| private int blockSize | |
| bytesRead | back to summary |
|---|---|
| private long bytesRead | |
| currBlkIdx | back to summary |
|---|---|
| private int currBlkIdx | |
| isCompressed | back to summary |
|---|---|
| private boolean isCompressed | |
| readOffset | back to summary |
|---|---|
| private int readOffset | |
| RECORD_SIZE | back to summary |
|---|---|
| private static final int RECORD_SIZE | |
| TapeInputStream | back to summary |
|---|---|
| pack-priv TapeInputStream(final InputStream in) Constructs a new instance.
| |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Close the input stream.
| |
| getBytesRead | back to summary |
|---|---|
| public long getBytesRead() Gets number of bytes read.
| |
| peek | back to summary |
|---|---|
| public byte[] peek() throws IOException Peek at the next record from the input stream and return the data.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, int off, final int len) throws IOException Overrides java. Doc from java. Reads up to reads the full given length unless EOF is reached.
| |
| readBlock | back to summary |
|---|---|
| private void readBlock(final boolean decompress) throws IOException Read next block. All decompression is handled here.
| |
| readFully | back to summary |
|---|---|
| private void readFully(final byte[] b, final int off, final int len) throws IOException Read buffer | |
| readRange | back to summary |
|---|---|
| private byte[] readRange(final int len) throws IOException | |
| readRecord | back to summary |
|---|---|
| public byte[] readRecord() throws IOException Read a record from the input stream and return the data.
| |
| resetBlockSize | back to summary |
|---|---|
| public void resetBlockSize(final int recsPerBlock, final boolean isCompressed) throws IOException Sets the DumpArchive Buffer's block size. We need to sync the block size with the dump archive's actual block size since compression is handled at the block level.
| |
| skip | back to summary |
|---|---|
| public long skip(final long len) throws IOException Overrides java. Skip bytes. Same as read but without the arraycopy. skips the full given length unless EOF is reached.
| |