RandomAccessSource
interface RandomAccessSource
A seekable, random-access byte source. Every container reader works against this read contract. ZIP "browse without extract" (read the central directory at the tail) and single-entry extract (seek to one local header) both need offset reads rather than a forward-only stream.
ByteArrayRandomAccessSource is the only implementation shipped, so an archive has to be fully in memory before a reader can open it. Implement this interface yourself to back a reader with a real file handle.
Inheritors
Functions
Link copied to clipboard
Read exactly length bytes at offset, or fail. Convenience over RandomAccessSource.read.