MaybeTarFormat class sealed

Holds the possible TAR formats that a file could take.

This library supports the V7, USTAR, PAX, GNU, and STAR formats. The MaybeTarFormat class generally describes any combination of those formats and represents that we don't know the exact format yet. As soon as we do know, the TarFormat enum represents the exact format of a header.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valid bool
Returns if this format might be valid.
no setter

Methods

has(MaybeTarFormat other) bool
Returns if other is a possible resolution of this.
mayOnlyBe(MaybeTarFormat other) MaybeTarFormat
Returns a new TarFormat that signifies that it can only be other's format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator |(TarFormat other) MaybeTarFormat
Returns a new MaybeTarFormat that signifies that it can be either this or other's format.