public static class InStream.CompressedStream extends InStream
InStream.CompressedStream, InStream.EncryptedStream, InStream.StreamOptions, InStream.UncompressedStream| Modifier and Type | Field and Description | 
|---|---|
| protected ByteBuffer | compressed | 
| protected long | currentCompressedStart | 
| protected DiskRangeList | currentRange | 
| Constructor and Description | 
|---|
| CompressedStream(Object name,
                DiskRangeList input,
                long offset,
                long length,
                InStream.StreamOptions options)Create the stream and initialize the input for the stream. | 
| CompressedStream(Object name,
                long offset,
                long length,
                InStream.StreamOptions options)Create the stream without resetting the input stream. | 
| 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(PositionProvider index) | 
| protected void | setCurrent(DiskRangeList newRange,
          boolean isJump)Set the current range | 
| String | toString() | 
create, create, createCodedInputStream, options, reset, resetmark, markSupported, read, reset, skipprotected ByteBuffer compressed
protected DiskRangeList currentRange
protected long currentCompressedStart
public CompressedStream(Object name, long offset, long length, InStream.StreamOptions options)
name - the name of the streamlength - the total number of bytes in the streamoptions - the options used to read the streampublic CompressedStream(Object name, DiskRangeList input, long offset, long length, InStream.StreamOptions options)
name - the name of the streaminput - the input datalength - the total length of the streamoptions - the options to read the data withprotected 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()
         throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] data,
                int offset,
                int length)
         throws IOException
read in class InputStreamIOExceptionpublic int available()
              throws IOException
available in class InputStreamIOExceptionpublic void close()
public void seek(PositionProvider index) throws IOException
seek in class InStreamIOExceptionCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.