TarEntry class final

An entry in a tar file.

Usually, tar entries are read from a stream, and they're bound to the stream from which they've been read. This means that they can only be read once, and that only one TarEntry is active at a time.

Implementers

Constructors

TarEntry(TarHeader header, Stream<List<int>> contents)
Creates a tar entry from a header and the contents stream.
factory

Properties

contents Stream<List<int>>
The content stream of the active tar entry.
final
hashCode int
The hash code for this object.
no setterinherited
The parsed TarHeader of this tar entry.
final
modified DateTime
Time of the last modification of this file, as indicated in the header.
no setter
name String
The name of this entry, as indicated in the header or a previous pax entry.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The content size of this entry, in bytes.
no setter
type TypeFlag
The type of tar entry (file, directory, etc.).
no setter

Methods

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

Static Methods

data(TarHeader header, List<int> data) SynchronousTarEntry
Creates an in-memory tar entry from the header and the data to store.