Package org.apache.tools.tar
Interface TarConstants
- All Known Implementing Classes:
TarArchiveSparseEntry
,TarEntry
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 type enum archive_format
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
The length of the access time field in an old GNU header buffer.static int
The length of the checksum field in a header buffer.static int
The length of the created time field in an old GNU header buffer.static int
The length of each of the device fields (major and minor) in a header buffer.static int
GNU format as per before tar 1.12.static int
Pure Posix format.static int
The length of the group id field in a header buffer.static int
The length of the group name field in a header buffer.static String
The name of the GNU tar entry which contains a long name.static String
The magic tag representing a GNU tar archive.static int
The length of the is extension field in an old GNU header buffer.static int
The length of the is extension field in a sparse header buffer.static byte
Block device file type.static byte
Character device file type.static byte
Contiguous file type.static byte
Directory file type.static byte
FIFO (pipe) file type.static byte
Identifies the *next* file on the tape as having a long linkname.static byte
Identifies the *next* file on the tape as having a long name.static byte
Sparse file type.static byte
Link file type.static byte
Normal file type.static byte
LF_ constants represent the "link flag" of an entry, or more commonly, the "entry type".static byte
Identifies the entry as a Pax extended header.static byte
Identifies the entry as a Pax extended header (SunOS tar -E).static byte
Identifies the entry as a Pax global extended header.static byte
Symbolic link file type.static int
The length of the long names field in an old GNU header buffer.static int
Offset of start of magic field within header recordstatic String
The magic tag representing a POSIX tar archive.static int
The length of the magic field in a header buffer including the version.static 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 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 int
The length of the mode field in a header buffer.static int
The length of the modification time field in a header buffer.static int
The length of the name field in a header buffer.static int
The length of the multivolume start offset field in an old GNU header buffer.static int
The length of the padding field in an old GNU header buffer.static int
Length of the prefix field.static int
The length of the magic field in a header buffer.static int
The length of the real size field in an old GNU header buffer.static int
The length of the size field in a header buffer.static int
The sum of the length of all sparse headers in an old GNU header buffer.static int
The sum of the length of all sparse headers in a sparse header buffer.static String
static int
The length of the user id field in a header buffer.static int
The length of the user name field in a header buffer.static String
static String
static int
Offset of start of magic field within header recordstatic String
static int
Previously this was regarded as part of "magic" field, but it is separate.
-
Field Details
-
FORMAT_OLDGNU
static final int FORMAT_OLDGNUGNU format as per before tar 1.12.- See Also:
- Constant Field Values
-
FORMAT_POSIX
static final int FORMAT_POSIXPure Posix format.- See Also:
- Constant Field Values
-
NAMELEN
static final int NAMELENThe length of the name field in a header buffer.- See Also:
- Constant Field Values
-
MODELEN
static final int MODELENThe length of the mode field in a header buffer.- See Also:
- Constant Field Values
-
UIDLEN
static final int UIDLENThe length of the user id field in a header buffer.- See Also:
- Constant Field Values
-
GIDLEN
static final int GIDLENThe length of the group id field in a header buffer.- See Also:
- Constant Field Values
-
MAXID
static final long MAXIDThe maximum value of gid/uid in a tar archive which can be expressed in octal char notation (that's 7 sevens, octal).- See Also:
- Constant Field Values
-
CHKSUMLEN
static final int CHKSUMLENThe length of the checksum field in a header buffer.- See Also:
- Constant Field Values
-
SIZELEN
static final int SIZELENThe length of the size field in a header buffer. Includes the trailing space or NUL.- See Also:
- Constant Field Values
-
MAXSIZE
static final long MAXSIZEThe maximum size of a file in a tar archive which can be expressed in octal char notation (that's 11 sevens, octal).- See Also:
- Constant Field Values
-
MAGIC_OFFSET
static final int MAGIC_OFFSETOffset of start of magic field within header record- See Also:
- Constant Field Values
-
MAGICLEN
static final int MAGICLENThe length of the magic field in a header buffer including the version.- See Also:
- Constant Field Values
-
PURE_MAGICLEN
static final int PURE_MAGICLENThe length of the magic field in a header buffer.- See Also:
- Constant Field Values
-
VERSION_OFFSET
static final int VERSION_OFFSETOffset of start of magic field within header record- See Also:
- Constant Field Values
-
VERSIONLEN
static final int VERSIONLENPreviously this was regarded as part of "magic" field, but it is separate.- See Also:
- Constant Field Values
-
MODTIMELEN
static final int MODTIMELENThe length of the modification time field in a header buffer.- See Also:
- Constant Field Values
-
UNAMELEN
static final int UNAMELENThe length of the user name field in a header buffer.- See Also:
- Constant Field Values
-
GNAMELEN
static final int GNAMELENThe length of the group name field in a header buffer.- See Also:
- Constant Field Values
-
DEVLEN
static final int DEVLENThe length of each of the device fields (major and minor) in a header buffer.- See Also:
- Constant Field Values
-
PREFIXLEN
static final int PREFIXLENLength of the prefix field.- See Also:
- Constant Field Values
-
ATIMELEN_GNU
static final int ATIMELEN_GNUThe length of the access time field in an old GNU header buffer.- See Also:
- Constant Field Values
-
CTIMELEN_GNU
static final int CTIMELEN_GNUThe length of the created time field in an old GNU header buffer.- See Also:
- Constant Field Values
-
OFFSETLEN_GNU
static final int OFFSETLEN_GNUThe length of the multivolume start offset field in an old GNU header buffer.- See Also:
- Constant Field Values
-
LONGNAMESLEN_GNU
static final int LONGNAMESLEN_GNUThe length of the long names field in an old GNU header buffer.- See Also:
- Constant Field Values
-
PAD2LEN_GNU
static final int PAD2LEN_GNUThe length of the padding field in an old GNU header buffer.- See Also:
- Constant Field Values
-
SPARSELEN_GNU
static final int SPARSELEN_GNUThe sum of the length of all sparse headers in an old GNU header buffer.- See Also:
- Constant Field Values
-
ISEXTENDEDLEN_GNU
static final int ISEXTENDEDLEN_GNUThe length of the is extension field in an old GNU header buffer.- See Also:
- Constant Field Values
-
REALSIZELEN_GNU
static final int REALSIZELEN_GNUThe length of the real size field in an old GNU header buffer.- See Also:
- Constant Field Values
-
SPARSELEN_GNU_SPARSE
static final int SPARSELEN_GNU_SPARSEThe sum of the length of all sparse headers in a sparse header buffer.- See Also:
- Constant Field Values
-
ISEXTENDEDLEN_GNU_SPARSE
static final int ISEXTENDEDLEN_GNU_SPARSEThe length of the is extension field in a sparse header buffer.- See Also:
- Constant Field Values
-
LF_OLDNORM
static final byte LF_OLDNORMLF_ 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:
- Constant Field Values
-
LF_NORMAL
static final byte LF_NORMALNormal file type.- See Also:
- Constant Field Values
-
LF_LINK
static final byte LF_LINKLink file type.- See Also:
- Constant Field Values
-
LF_SYMLINK
static final byte LF_SYMLINKSymbolic link file type.- See Also:
- Constant Field Values
-
LF_CHR
static final byte LF_CHRCharacter device file type.- See Also:
- Constant Field Values
-
LF_BLK
static final byte LF_BLKBlock device file type.- See Also:
- Constant Field Values
-
LF_DIR
static final byte LF_DIRDirectory file type.- See Also:
- Constant Field Values
-
LF_FIFO
static final byte LF_FIFOFIFO (pipe) file type.- See Also:
- Constant Field Values
-
LF_CONTIG
static final byte LF_CONTIGContiguous file type.- See Also:
- Constant Field Values
-
LF_GNUTYPE_LONGLINK
static final byte LF_GNUTYPE_LONGLINKIdentifies the *next* file on the tape as having a long linkname.- See Also:
- Constant Field Values
-
LF_GNUTYPE_LONGNAME
static final byte LF_GNUTYPE_LONGNAMEIdentifies the *next* file on the tape as having a long name.- See Also:
- Constant Field Values
-
LF_GNUTYPE_SPARSE
static final byte LF_GNUTYPE_SPARSESparse file type.- See Also:
- Constant Field Values
-
LF_PAX_EXTENDED_HEADER_LC
static final byte LF_PAX_EXTENDED_HEADER_LCIdentifies the entry as a Pax extended header.- See Also:
- Constant Field Values
-
LF_PAX_EXTENDED_HEADER_UC
static final byte LF_PAX_EXTENDED_HEADER_UCIdentifies the entry as a Pax extended header (SunOS tar -E).- See Also:
- Constant Field Values
-
LF_PAX_GLOBAL_EXTENDED_HEADER
static final byte LF_PAX_GLOBAL_EXTENDED_HEADERIdentifies the entry as a Pax global extended header.- See Also:
- Constant Field Values
-
TMAGIC
- See Also:
- Constant Field Values
-
MAGIC_POSIX
The magic tag representing a POSIX tar archive.- See Also:
- Constant Field Values
-
VERSION_POSIX
- See Also:
- Constant Field Values
-
GNU_TMAGIC
The magic tag representing a GNU tar archive.- See Also:
- Constant Field Values
-
VERSION_GNU_SPACE
- See Also:
- Constant Field Values
-
VERSION_GNU_ZERO
- See Also:
- Constant Field Values
-
GNU_LONGLINK
The name of the GNU tar entry which contains a long name.- See Also:
- Constant Field Values
-