OutputFormat enum
This option controls how long file and link names should be written.
This option can be passed to writer in tarWritingSink ortarWriterWith.
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
- their TarHeader.userName is longer than 31 bytes in utf8,
- their TarHeader.groupName is longer than 31 bytes in utf8, or,
- their TarEntry.contents are larger than 8589934591 byte (around 8 GiB).
Attempting to encode such file will throw an UnsupportedError.
Properties
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.