public static class InStream.UncompressedStream extends InStream
InStream.EncryptedStream, InStream.StreamOptions, InStream.UncompressedStream| Modifier and Type | Field and Description |
|---|---|
protected long |
currentOffset |
protected DiskRangeList |
currentRange |
protected ByteBuffer |
decrypted |
| Constructor and Description |
|---|
UncompressedStream(Object name,
DiskRangeList input,
long offset,
long length) |
UncompressedStream(Object name,
long offset,
long length)
Create the stream without calling reset on it.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
changeIv(Consumer<byte[]> modifier) |
void |
close() |
int |
read() |
int |
read(byte[] data,
int offset,
int length) |
void |
seek(long desired) |
void |
seek(PositionProvider index) |
protected void |
setCurrent(DiskRangeList newRange,
boolean isJump)
Set the current range
|
String |
toString() |
create, create, createCodedInputStream, options, resetmark, markSupported, read, reset, skipprotected ByteBuffer decrypted
protected DiskRangeList currentRange
protected long currentOffset
public UncompressedStream(Object name, long offset, long length)
name - name of the streamlength - the number of bytes for the streampublic UncompressedStream(Object name, DiskRangeList input, long offset, long length)
public int read()
read in class InputStreamprotected void setCurrent(DiskRangeList newRange, boolean isJump)
InStreamsetCurrent in class InStreamnewRange - the block that is currentisJump - if this was a seek instead of a natural readpublic int read(byte[] data,
int offset,
int length)
read in class InputStreampublic int available()
available in class InputStreampublic void close()
public void seek(PositionProvider index) throws IOException
seek in class InStreamIOExceptionpublic void seek(long desired)
throws IOException
IOExceptionCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.