Class CompressedChunkReader.Standard

All Implemented Interfaces:
AutoCloseable, ChunkReader, ReaderFileProxy, RebuffererFactory
Enclosing class:
CompressedChunkReader

public static class CompressedChunkReader.Standard extends CompressedChunkReader
  • Constructor Details

  • Method Details

    • forScan

      protected CompressedChunkReader forScan()
      Overrides:
      forScan in class CompressedChunkReader
    • releaseUnderlyingResources

      public void releaseUnderlyingResources()
    • readChunk

      public void readChunk(long position, ByteBuffer uncompressed)
      Description copied from interface: ChunkReader
      Read the chunk at the given position, attempting to fill the capacity of the given buffer. The filled buffer must be positioned at 0, with limit set at the size of the available data. The source may have requirements for the positioning and/or size of the buffer (e.g. chunk-aligned and chunk-sized). These must be satisfied by the caller.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface ReaderFileProxy
      Overrides:
      close in class AbstractReaderFileProxy