TarDecoder class
Decode a tar formatted buffer into an Archive object. Hard link is decoded as ArchiveFile.symbolicLink with target relative to link folder and ArchiveFile.isHardLink set, so extracted link points to its target
Constructors
- TarDecoder({Encoding filenameEncoding = const Utf8Codec()})
Properties
- filenameEncoding → Encoding
-
final
-
files
↔ List<
TarFile> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decodeBytes(
List< int> data, {bool verify = false, bool? throwOnError, bool storeData = true, ArchiveCallback? callback, bool keepEntries = true}) → Archive -
Decode
dataas a tar archive. Withverify, every entry's header checksum is checked and an ArchiveException thrown if one is wrong, which is what tells a tar apart from an unrelated file. -
decodeStream(
InputStream input, {bool verify = false, bool? throwOnError, bool storeData = true, ArchiveCallback? callback, bool keepEntries = true}) → Archive -
Decode
inputas a tar archive. Withverify, every entry's header checksum is checked and an ArchiveException thrown if one is wrong, which is what tells a tar apart from an unrelated file. -
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