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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe length of the access time field in an old GNU header buffer.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 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 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 StringThe magic tag representing a GNU tar archive.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 linkname.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 byteNormal file type.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 intOffset of start of magic field within header recordstatic final StringThe magic tag representing a POSIX tar archive.static final intThe length of the magic field in a header buffer including the version.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 intThe length of the magic field in a header buffer.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 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 Stringstatic 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 Stringstatic final Stringstatic 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.
- 
Field Details- 
FORMAT_OLDGNUstatic final int FORMAT_OLDGNUGNU format as per before tar 1.12.- See Also:
 
- 
FORMAT_POSIXstatic final int FORMAT_POSIXPure Posix format.- See Also:
 
- 
NAMELENstatic final int NAMELENThe length of the name field in a header buffer.- See Also:
 
- 
MODELENstatic final int MODELENThe length of the mode field in a header buffer.- See Also:
 
- 
UIDLENstatic final int UIDLENThe length of the user id field in a header buffer.- See Also:
 
- 
GIDLENstatic final int GIDLENThe length of the group id field in a header buffer.- See Also:
 
- 
MAXIDstatic 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:
 
- 
CHKSUMLENstatic final int CHKSUMLENThe length of the checksum field in a header buffer.- See Also:
 
- 
SIZELENstatic final int SIZELENThe length of the size field in a header buffer. Includes the trailing space or NUL.- See Also:
 
- 
MAXSIZEstatic 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:
 
- 
MAGIC_OFFSETstatic final int MAGIC_OFFSETOffset of start of magic field within header record- See Also:
 
- 
MAGICLENstatic final int MAGICLENThe length of the magic field in a header buffer including the version.- See Also:
 
- 
PURE_MAGICLENstatic final int PURE_MAGICLENThe length of the magic field in a header buffer.- See Also:
 
- 
VERSION_OFFSETstatic final int VERSION_OFFSETOffset of start of magic field within header record- See Also:
 
- 
VERSIONLENstatic final int VERSIONLENPreviously this was regarded as part of "magic" field, but it is separate.- See Also:
 
- 
MODTIMELENstatic final int MODTIMELENThe length of the modification time field in a header buffer.- See Also:
 
- 
UNAMELENstatic final int UNAMELENThe length of the user name field in a header buffer.- See Also:
 
- 
GNAMELENstatic final int GNAMELENThe length of the group name field in a header buffer.- See Also:
 
- 
DEVLENstatic final int DEVLENThe length of each of the device fields (major and minor) in a header buffer.- See Also:
 
- 
PREFIXLENstatic final int PREFIXLENLength of the prefix field.- See Also:
 
- 
ATIMELEN_GNUstatic final int ATIMELEN_GNUThe length of the access time field in an old GNU header buffer.- See Also:
 
- 
CTIMELEN_GNUstatic final int CTIMELEN_GNUThe length of the created time field in an old GNU header buffer.- See Also:
 
- 
OFFSETLEN_GNUstatic final int OFFSETLEN_GNUThe length of the multivolume start offset field in an old GNU header buffer.- See Also:
 
- 
LONGNAMESLEN_GNUstatic final int LONGNAMESLEN_GNUThe length of the long names field in an old GNU header buffer.- See Also:
 
- 
PAD2LEN_GNUstatic final int PAD2LEN_GNUThe length of the padding field in an old GNU header buffer.- See Also:
 
- 
SPARSELEN_GNUstatic final int SPARSELEN_GNUThe sum of the length of all sparse headers in an old GNU header buffer.- See Also:
 
- 
ISEXTENDEDLEN_GNUstatic final int ISEXTENDEDLEN_GNUThe length of the is extension field in an old GNU header buffer.- See Also:
 
- 
REALSIZELEN_GNUstatic final int REALSIZELEN_GNUThe length of the real size field in an old GNU header buffer.- See Also:
 
- 
SPARSELEN_GNU_SPARSEstatic final int SPARSELEN_GNU_SPARSEThe sum of the length of all sparse headers in a sparse header buffer.- See Also:
 
- 
ISEXTENDEDLEN_GNU_SPARSEstatic final int ISEXTENDEDLEN_GNU_SPARSEThe length of the is extension field in a sparse header buffer.- See Also:
 
- 
LF_OLDNORMstatic 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:
 
- 
LF_NORMALstatic final byte LF_NORMALNormal file type.- See Also:
 
- 
LF_LINKstatic final byte LF_LINKLink file type.- See Also:
 
- 
LF_SYMLINKstatic final byte LF_SYMLINKSymbolic link file type.- See Also:
 
- 
LF_CHRstatic final byte LF_CHRCharacter device file type.- See Also:
 
- 
LF_BLKstatic final byte LF_BLKBlock device file type.- See Also:
 
- 
LF_DIRstatic final byte LF_DIRDirectory file type.- See Also:
 
- 
LF_FIFOstatic final byte LF_FIFOFIFO (pipe) file type.- See Also:
 
- 
LF_CONTIGstatic final byte LF_CONTIGContiguous file type.- See Also:
 
- 
LF_GNUTYPE_LONGLINKstatic final byte LF_GNUTYPE_LONGLINKIdentifies the *next* file on the tape as having a long linkname.- See Also:
 
- 
LF_GNUTYPE_LONGNAMEstatic final byte LF_GNUTYPE_LONGNAMEIdentifies the *next* file on the tape as having a long name.- See Also:
 
- 
LF_GNUTYPE_SPARSEstatic final byte LF_GNUTYPE_SPARSESparse file type.- See Also:
 
- 
LF_PAX_EXTENDED_HEADER_LCstatic final byte LF_PAX_EXTENDED_HEADER_LCIdentifies the entry as a Pax extended header.- See Also:
 
- 
LF_PAX_EXTENDED_HEADER_UCstatic final byte LF_PAX_EXTENDED_HEADER_UCIdentifies the entry as a Pax extended header (SunOS tar -E).- See Also:
 
- 
LF_PAX_GLOBAL_EXTENDED_HEADERstatic final byte LF_PAX_GLOBAL_EXTENDED_HEADERIdentifies the entry as a Pax global extended header.- See Also:
 
- 
TMAGIC- See Also:
 
- 
MAGIC_POSIXThe magic tag representing a POSIX tar archive.- See Also:
 
- 
VERSION_POSIX- See Also:
 
- 
GNU_TMAGICThe magic tag representing a GNU tar archive.- See Also:
 
- 
VERSION_GNU_SPACE- See Also:
 
- 
VERSION_GNU_ZERO- See Also:
 
- 
GNU_LONGLINKThe name of the GNU tar entry which contains a long name.- See Also:
 
 
-