ZipReader class
Minimal hand-written ZIP reader that parses the End-Of-Central-Directory
record and Central Directory File Headers to list entries, and reads
individual entries' bytes via their Local File Header, using
ZLibDecoder (raw-deflate mode) from dart:io (SDK-provided) for
DEFLATE decompression. Supports STORED (0) and DEFLATE (8) methods
only, which covers the overwhelming majority of zip/SCORM/office
packages in practice.
This replaces the third-party archive package.
Constructors
- ZipReader.decodeBytes(Uint8List bytes)
-
Parses
bytesas a zip archive's central directory.factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readBytes(
ZipEntry entry) → Uint8List -
Reads and (if needed) decompresses the content of
entry. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited