ArchiveReader class final

An indexed, read-only view over a single archive (omp's ArchiveReader, reduced to read/list). Decoding happens up front in ArchiveReader.decode via package:archive; member bytes are inflated on demand by readFileBytes.

Constructors

ArchiveReader.decode(Uint8List bytes, ArchiveFormat format)
Decodes bytes as format into an indexed reader. Throws StateError when the archive exceeds maxArchiveBytes or fails to decode.
factory

Properties

format ArchiveFormat
The container format.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getNode(String? subPath) ArchiveNode?
Looks up subPath (normalized); null/empty addresses the root.
listDirectory(String? subPath) List<ArchiveDirectoryEntry>
Lists the immediate children of subPath (omp's listDirectory): throws when the path escapes via .., is missing, or is not a directory. Entries keep archive index order.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFileBytes(String subPath) Uint8List
Reads the (inflated) bytes of a file member. Throws when the member is missing, a directory, or exceeds maxArchiveMemberBytes declared.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited