Interface TarConstants
- All Known Implementing Classes:
TarArchiveEntry
,TarArchiveSparseEntry
public interface TarConstants
This interface contains all the definitions used in the package.
For tar formats (FORMAT_OLDGNU, FORMAT_POSIX, etc.) see GNU tar tar.h and type
enum archive_format
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The length of the access time field in an old GNU header buffer.static final int
The length of the access time field in a xstar header buffer.static final int
Offset of the checksum field within header record.static final int
The length of the checksum field in a header buffer.static final int
The length of the created time field in an old GNU header buffer.static final int
The length of the created time field in a xstar header buffer.static final int
Default block sizestatic final int
Default record sizestatic final int
The length of each of the device fields (major and minor) in a header buffer.static final int
GNU format as per before tar 1.12.static final int
Pure POSIX format.static final int
xstar format used by Jörg Schilling's star.static final int
The length of the group id field in a header buffer.static final int
The length of the group name field in a header buffer.static final String
The name of the GNU tar entry which contains a long name.static final int
The length of the is extension field in an old GNU header buffer.static final int
The length of the is extension field in a sparse header buffer.static final byte
Block device file type.static final byte
Character device file type.static final byte
Contiguous file type.static final byte
Directory file type.static final byte
FIFO (pipe) file type.static final byte
Identifies the *next* file on the tape as having a long link name.static final byte
Identifies the *next* file on the tape as having a long name.static final byte
Sparse file type.static final byte
Link file type.static final byte
Identifies the entry as a multi-volume past volume #0static final byte
Normal file type.static final int
Offset inside the header for the "link flag" field.static final byte
LF_ constants represent the "link flag" of an entry, or more commonly, the "entry type".static final byte
Identifies the entry as a Pax extended header.static final byte
Identifies the entry as a Pax extended header (SunOS tar -E).static final byte
Identifies the entry as a Pax global extended header.static final byte
Symbolic link file type.static final int
The length of the long names field in an old GNU header buffer.static final String
The magic tag representing an Ant tar archive.static final String
The magic tag representing a GNU tar archive.static final int
Offset of start of magic field within header recordstatic final String
The magic tag representing a POSIX tar archive.static final String
The magix string used in the last four bytes of the header to identify the xstar format.static final int
The length of the magic field in a header buffer.static final long
The maximum value of gid/uid in a tar archive which can be expressed in octal char notation (that's 7 sevens, octal).static final long
The maximum size of a file in a tar archive which can be expressed in octal char notation (that's 11 sevens, octal).static final int
The length of the mode field in a header buffer.static final int
The length of the modification time field in a header buffer.static final int
The length of the name field in a header buffer.static final int
The length of the multivolume start offset field in an old GNU header buffer.static final int
The length of the padding field in an old GNU header buffer.static final int
Length of the prefix field.static final int
Length of the prefix field in xstar archives.static final int
The length of the real size field in an old GNU header buffer.static final int
The length of the size field in a header buffer.static final int
The number of sparse headers in an extension headerstatic final int
The number of sparse headers in an old GNU headerstatic final int
The length of numbytes in struct sparsestatic final int
The length of offset in struct sparsestatic final int
The sum of the length of all sparse headers in an old GNU header buffer.static final int
The sum of the length of all sparse headers in a sparse header buffer.static final int
The length of the user id field in a header buffer.static final int
The length of the user name field in a header buffer.static final String
The "version" representing an Ant tar archive.static final String
One of two possible GNU versionsstatic final String
One of two possible GNU versionsstatic final int
Offset of start of magic field within header recordstatic final String
static final int
Previously this was regarded as part of "magic" field, but it is separate.static final int
Offset inside the header for the atime field in xstar archives.static final int
Offset inside the header for the ctime field in xstar archives.static final int
Length of the XSTAR magic.static final int
Offset inside the header for the xstar magic bytes.static final int
Offset inside the header for the xtar multivolume datastatic final int
Offset inside the header for the prefix field in xstar archives.
-
Field Details
-
DEFAULT_RCDSIZE
Default record size- See Also:
-
DEFAULT_BLKSIZE
Default block size- See Also:
-
FORMAT_OLDGNU
GNU format as per before tar 1.12.- See Also:
-
FORMAT_POSIX
Pure POSIX format.- See Also:
-
FORMAT_XSTAR
xstar format used by Jörg Schilling's star.- See Also:
-
NAMELEN
The length of the name field in a header buffer.- See Also:
-
MODELEN
The length of the mode field in a header buffer.- See Also:
-
UIDLEN
The length of the user id field in a header buffer.- See Also:
-
GIDLEN
The length of the group id field in a header buffer.- See Also:
-
MAXID
The maximum value of gid/uid in a tar archive which can be expressed in octal char notation (that's 7 sevens, octal).- See Also:
-
CHKSUMLEN
The length of the checksum field in a header buffer.- See Also:
-
CHKSUM_OFFSET
Offset of the checksum field within header record.- Since:
- 1.5
- See Also:
-
SIZELEN
The length of the size field in a header buffer. Includes the trailing space or NUL.- See Also:
-
MAXSIZE
The maximum size of a file in a tar archive which can be expressed in octal char notation (that's 11 sevens, octal).- See Also:
-
MAGIC_OFFSET
Offset of start of magic field within header record- See Also:
-
MAGICLEN
The length of the magic field in a header buffer.- See Also:
-
VERSION_OFFSET
Offset of start of magic field within header record- See Also:
-
VERSIONLEN
Previously this was regarded as part of "magic" field, but it is separate.- See Also:
-
MODTIMELEN
The length of the modification time field in a header buffer.- See Also:
-
UNAMELEN
The length of the user name field in a header buffer.- See Also:
-
GNAMELEN
The length of the group name field in a header buffer.- See Also:
-
DEVLEN
The length of each of the device fields (major and minor) in a header buffer.- See Also:
-
PREFIXLEN
Length of the prefix field.- See Also:
-
ATIMELEN_GNU
The length of the access time field in an old GNU header buffer.- See Also:
-
CTIMELEN_GNU
The length of the created time field in an old GNU header buffer.- See Also:
-
OFFSETLEN_GNU
The length of the multivolume start offset field in an old GNU header buffer.- See Also:
-
LONGNAMESLEN_GNU
The length of the long names field in an old GNU header buffer.- See Also:
-
PAD2LEN_GNU
The length of the padding field in an old GNU header buffer.- See Also:
-
SPARSELEN_GNU
The sum of the length of all sparse headers in an old GNU header buffer.- See Also:
-
ISEXTENDEDLEN_GNU
The length of the is extension field in an old GNU header buffer.- See Also:
-
REALSIZELEN_GNU
The length of the real size field in an old GNU header buffer.- See Also:
-
SPARSE_OFFSET_LEN
The length of offset in struct sparse- Since:
- 1.20
- See Also:
-
SPARSE_NUMBYTES_LEN
The length of numbytes in struct sparse- Since:
- 1.20
- See Also:
-
SPARSE_HEADERS_IN_OLDGNU_HEADER
The number of sparse headers in an old GNU header- Since:
- 1.20
- See Also:
-
SPARSE_HEADERS_IN_EXTENSION_HEADER
The number of sparse headers in an extension header- Since:
- 1.20
- See Also:
-
SPARSELEN_GNU_SPARSE
The sum of the length of all sparse headers in a sparse header buffer.- See Also:
-
ISEXTENDEDLEN_GNU_SPARSE
The length of the is extension field in a sparse header buffer.- See Also:
-
LF_OLDNORM
LF_ constants represent the "link flag" of an entry, or more commonly, the "entry type". This is the "old way" of indicating a normal file.- See Also:
-
LF_OFFSET
Offset inside the header for the "link flag" field.- Since:
- 1.22
- See Also:
-
LF_NORMAL
Normal file type.- See Also:
-
LF_LINK
Link file type.- See Also:
-
LF_SYMLINK
Symbolic link file type.- See Also:
-
LF_CHR
Character device file type.- See Also:
-
LF_BLK
Block device file type.- See Also:
-
LF_DIR
Directory file type.- See Also:
-
LF_FIFO
FIFO (pipe) file type.- See Also:
-
LF_CONTIG
Contiguous file type.- See Also:
-
LF_GNUTYPE_LONGLINK
Identifies the *next* file on the tape as having a long link name.- See Also:
-
LF_GNUTYPE_LONGNAME
Identifies the *next* file on the tape as having a long name.- See Also:
-
LF_GNUTYPE_SPARSE
Sparse file type.- Since:
- 1.1.1
- See Also:
-
LF_PAX_EXTENDED_HEADER_LC
Identifies the entry as a Pax extended header.- Since:
- 1.1
- See Also:
-
LF_PAX_EXTENDED_HEADER_UC
Identifies the entry as a Pax extended header (SunOS tar -E).- Since:
- 1.1
- See Also:
-
LF_PAX_GLOBAL_EXTENDED_HEADER
Identifies the entry as a Pax global extended header.- Since:
- 1.1
- See Also:
-
LF_MULTIVOLUME
Identifies the entry as a multi-volume past volume #0- Since:
- 1.22
- See Also:
-
MAGIC_POSIX
The magic tag representing a POSIX tar archive."ustar" and a null.
- See Also:
-
VERSION_POSIX
- See Also:
-
MAGIC_GNU
The magic tag representing a GNU tar archive.- See Also:
-
VERSION_GNU_SPACE
One of two possible GNU versions- See Also:
-
VERSION_GNU_ZERO
One of two possible GNU versions- See Also:
-
MAGIC_ANT
The magic tag representing an Ant tar archive.- Since:
- 1.1
- See Also:
-
VERSION_ANT
The "version" representing an Ant tar archive.- Since:
- 1.1
- See Also:
-
GNU_LONGLINK
The name of the GNU tar entry which contains a long name.- See Also:
-
MAGIC_XSTAR
The magix string used in the last four bytes of the header to identify the xstar format.- Since:
- 1.11
- See Also:
-
XSTAR_MULTIVOLUME_OFFSET
Offset inside the header for the xtar multivolume data- Since:
- 1.22
- See Also:
-
XSTAR_MAGIC_OFFSET
Offset inside the header for the xstar magic bytes.- Since:
- 1.11
- See Also:
-
XSTAR_MAGIC_LEN
Length of the XSTAR magic.- Since:
- 1.11
- See Also:
-
PREFIXLEN_XSTAR
Length of the prefix field in xstar archives.- Since:
- 1.11
- See Also:
-
XSTAR_PREFIX_OFFSET
Offset inside the header for the prefix field in xstar archives.- Since:
- 1.22
- See Also:
-
XSTAR_ATIME_OFFSET
Offset inside the header for the atime field in xstar archives.- Since:
- 1.22
- See Also:
-
ATIMELEN_XSTAR
The length of the access time field in a xstar header buffer.- Since:
- 1.11
- See Also:
-
XSTAR_CTIME_OFFSET
Offset inside the header for the ctime field in xstar archives.- Since:
- 1.22
- See Also:
-
CTIMELEN_XSTAR
The length of the created time field in a xstar header buffer.- Since:
- 1.11
- See Also:
-