ZipReader
ZIP reader for EPUB / OCF / CBZ containers. Parses the central directory, then reads entries on demand (STORED or raw DEFLATE via the shared inflater).
What it handles: methods 0 and 8, ZIP64 records (both the end-of-central- directory pair and the per-entry extra field), entries whose sizes live in a trailing data descriptor, and CRC-32 verification.
What it does not: encryption, and multi-disk archives. A reader built on a ByteArray also stops at 2 GB; one built on a KiteByteSource holds only the central directory and the entry it is reading, so the archive can be larger than the heap.
CRC mismatches are lenient by default: read hands the bytes back and logs, because half a broken book beats no book. Pass strictCrc to get null instead, or call verify to ask without reading. maxEntryBytes and maxEntries bound decompression and central-directory resource use.
Constructors
Open bytes with default resource ceilings.
Open bytes with explicit decompressed-entry and record-count ceilings.
Properties
Functions
Header facts about name, or null if absent.
Text of name, or null. The encoding is sniffed rather than assumed: see TextEncoding. Pass encodingHint when something outside the file knows better, e.g. an HTTP Content-Type.