Interface ChunkReader

    • Method Detail

      • readChunk

        void readChunk​(long position,
                       java.nio.ByteBuffer buffer)
        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.
      • chunkSize

        int chunkSize()
        Buffer size required for this rebufferer. Must be power of 2 if alignment is required.
      • preferredBufferType

        BufferType preferredBufferType()
        Specifies type of buffer the caller should attempt to give. This is not guaranteed to be fulfilled.