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
FieldsModifier and TypeFieldDescriptionstatic final intThe length of the access time field in an old GNU header buffer.static final intThe length of the access time field in a xstar header buffer.static final intOffset of the checksum field within header record.static final intThe length of the checksum field in a header buffer.static final intThe length of the created time field in an old GNU header buffer.static final intThe length of the created time field in a xstar header buffer.static final intDefault block sizestatic final intDefault record sizestatic final intThe length of each of the device fields (major and minor) in a header buffer.static final intGNU format as per before tar 1.12.static final intPure Posix format.static final intxstar format used by Jörg Schilling's star.static final intThe length of the group id field in a header buffer.static final intThe length of the group name field in a header buffer.static final StringThe name of the GNU tar entry which contains a long name.static final intThe length of the is extension field in an old GNU header buffer.static final intThe length of the is extension field in a sparse header buffer.static final byteBlock device file type.static final byteCharacter device file type.static final byteContiguous file type.static final byteDirectory file type.static final byteFIFO (pipe) file type.static final byteIdentifies the *next* file on the tape as having a long link name.static final byteIdentifies the *next* file on the tape as having a long name.static final byteSparse file type.static final byteLink file type.static final byteIdentifies the entry as a multi-volume past volume #0static final byteNormal file type.static final intOffset inside the header for the "link flag" field.static final byteLF_ constants represent the "link flag" of an entry, or more commonly, the "entry type".static final byteIdentifies the entry as a Pax extended header.static final byteIdentifies the entry as a Pax extended header (SunOS tar -E).static final byteIdentifies the entry as a Pax global extended header.static final byteSymbolic link file type.static final intThe length of the long names field in an old GNU header buffer.static final StringThe magic tag representing an Ant tar archive.static final StringThe magic tag representing a GNU tar archive.static final intOffset of start of magic field within header recordstatic final StringThe magic tag representing a POSIX tar archive.static final StringThe magix string used in the last four bytes of the header to identify the xstar format.static final intThe length of the magic field in a header buffer.static final longThe maximum value of gid/uid in a tar archive which can be expressed in octal char notation (that's 7 sevens, octal).static final longThe maximum size of a file in a tar archive which can be expressed in octal char notation (that's 11 sevens, octal).static final intThe length of the mode field in a header buffer.static final intThe length of the modification time field in a header buffer.static final intThe length of the name field in a header buffer.static final intThe length of the multivolume start offset field in an old GNU header buffer.static final intThe length of the padding field in an old GNU header buffer.static final intLength of the prefix field.static final intLength of the prefix field in xstar archives.static final intThe length of the real size field in an old GNU header buffer.static final intThe length of the size field in a header buffer.static final intThe number of sparse headers in an extension headerstatic final intThe number of sparse headers in an old GNU headerstatic final intThe length of numbytes in struct sparsestatic final intThe length of offset in struct sparsestatic final intThe sum of the length of all sparse headers in an old GNU header buffer.static final intThe sum of the length of all sparse headers in a sparse header buffer.static final intThe length of the user id field in a header buffer.static final intThe length of the user name field in a header buffer.static final StringThe "version" representing an Ant tar archive.static final StringOne of two possible GNU versionsstatic final StringOne of two possible GNU versionsstatic final intOffset of start of magic field within header recordstatic final Stringstatic final intPreviously this was regarded as part of "magic" field, but it is separate.static final intOffset inside the header for the atime field in xstar archives.static final intOffset inside the header for the ctime field in xstar archives.static final intLength of the XSTAR magic.static final intOffset inside the header for the xstar magic bytes.static final intOffset inside the header for the xtar multivolume datastatic final intOffset inside the header for the prefix field in xstar archives.
-
Field Details
-
DEFAULT_RCDSIZE
-
DEFAULT_BLKSIZE
-
FORMAT_OLDGNU
-
FORMAT_POSIX
-
FORMAT_XSTAR
-
NAMELEN
-
MODELEN
-
UIDLEN
-
GIDLEN
-
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
-
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
-
MAGICLEN
-
VERSION_OFFSET
-
VERSIONLEN
Previously this was regarded as part of "magic" field, but it is separate.- See Also:
-
MODTIMELEN
-
UNAMELEN
-
GNAMELEN
-
DEVLEN
The length of each of the device fields (major and minor) in a header buffer.- See Also:
-
PREFIXLEN
-
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
-
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
-
SPARSE_NUMBYTES_LEN
-
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
-
LF_LINK
-
LF_SYMLINK
-
LF_CHR
-
LF_BLK
-
LF_DIR
-
LF_FIFO
-
LF_CONTIG
-
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
-
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
-
VERSION_GNU_SPACE
-
VERSION_GNU_ZERO
-
MAGIC_ANT
-
VERSION_ANT
-
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
-
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:
-