JarFile class

The entries of a jar (a zip file), read with dart:io alone.

Enough of the zip format to list entry names and read an entry's text: the central directory, and stored or deflated entries. No zip64 (a jar over 4 GB, or with over 65 535 entries) and no encryption — neither occurs in a library jar, and either throws a FormatException.

Constructors

JarFile.open(String path)
Reads the central directory of the jar at path.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
names → Iterable<String>
Every entry name, as stored: com/example/Foo.class, META-INF/MANIFEST.MF, directories with a trailing /.
no setter
path → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(String name) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBytes(String name) → Uint8List?
The entry name's bytes, or null when there is no such entry.
readText(String name) → String?
The entry name, decoded as UTF-8 (malformed bytes replaced), or null when there is no such entry.
toString() → String
A string representation of this object.
inherited

Operators

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