OutputFormat enum

This option controls how long file and link names should be written.

This option can be passed to writer in tarWritingSink ortarWriterWith.

Inheritance

Constructors

OutputFormat()
const

Values

pax → const OutputFormat

Generates an extended PAX headers to encode files with a long name.

This is the default option.

gnuLongName → const OutputFormat

Generates TypeFlag.gnuLongName or TypeFlag.gnuLongLink entries when encoding files with a long name.

When this option is set, package:tar will not emit PAX headers which may improve compatibility with some legacy systems like old 7zip versions.

Note that this format can't encode large file sizes or long user names. Tar entries can't be written if

Attempting to encode such file will throw an UnsupportedError.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<OutputFormat>
A constant List of the values in this enum, in order of their declaration.