Package org.apache.tools.tar
Interface TarConstants
- 
- All Known Implementing Classes:
- TarArchiveSparseEntry,- TarEntry
 
 public interface TarConstantsThis 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 SummaryFields Modifier and Type Field Description static intATIMELEN_GNUThe length of the access time field in an old GNU header buffer.static intCHKSUMLENThe length of the checksum field in a header buffer.static intCTIMELEN_GNUThe length of the created time field in an old GNU header buffer.static intDEVLENThe length of each of the device fields (major and minor) in a header buffer.static intFORMAT_OLDGNUGNU format as per before tar 1.12.static intFORMAT_POSIXPure Posix format.static intGIDLENThe length of the group id field in a header buffer.static intGNAMELENThe length of the group name field in a header buffer.static java.lang.StringGNU_LONGLINKThe name of the GNU tar entry which contains a long name.static java.lang.StringGNU_TMAGICThe magic tag representing a GNU tar archive.static intISEXTENDEDLEN_GNUThe length of the is extension field in an old GNU header buffer.static intISEXTENDEDLEN_GNU_SPARSEThe length of the is extension field in a sparse header buffer.static byteLF_BLKBlock device file type.static byteLF_CHRCharacter device file type.static byteLF_CONTIGContiguous file type.static byteLF_DIRDirectory file type.static byteLF_FIFOFIFO (pipe) file type.static byteLF_GNUTYPE_LONGLINKIdentifies the *next* file on the tape as having a long linkname.static byteLF_GNUTYPE_LONGNAMEIdentifies the *next* file on the tape as having a long name.static byteLF_GNUTYPE_SPARSESparse file type.static byteLF_LINKLink file type.static byteLF_NORMALNormal file type.static byteLF_OLDNORMLF_ constants represent the "link flag" of an entry, or more commonly, the "entry type".static byteLF_PAX_EXTENDED_HEADER_LCIdentifies the entry as a Pax extended header.static byteLF_PAX_EXTENDED_HEADER_UCIdentifies the entry as a Pax extended header (SunOS tar -E).static byteLF_PAX_GLOBAL_EXTENDED_HEADERIdentifies the entry as a Pax global extended header.static byteLF_SYMLINKSymbolic link file type.static intLONGNAMESLEN_GNUThe length of the long names field in an old GNU header buffer.static intMAGIC_OFFSETOffset of start of magic field within header recordstatic java.lang.StringMAGIC_POSIXThe magic tag representing a POSIX tar archive.static intMAGICLENThe length of the magic field in a header buffer including the version.static longMAXIDThe maximum value of gid/uid in a tar archive which can be expressed in octal char notation (that's 7 sevens, octal).static longMAXSIZEThe maximum size of a file in a tar archive which can be expressed in octal char notation (that's 11 sevens, octal).static intMODELENThe length of the mode field in a header buffer.static intMODTIMELENThe length of the modification time field in a header buffer.static intNAMELENThe length of the name field in a header buffer.static intOFFSETLEN_GNUThe length of the multivolume start offset field in an old GNU header buffer.static intPAD2LEN_GNUThe length of the padding field in an old GNU header buffer.static intPREFIXLENLength of the prefix field.static intPURE_MAGICLENThe length of the magic field in a header buffer.static intREALSIZELEN_GNUThe length of the real size field in an old GNU header buffer.static intSIZELENThe length of the size field in a header buffer.static intSPARSELEN_GNUThe sum of the length of all sparse headers in an old GNU header buffer.static intSPARSELEN_GNU_SPARSEThe sum of the length of all sparse headers in a sparse header buffer.static java.lang.StringTMAGICstatic intUIDLENThe length of the user id field in a header buffer.static intUNAMELENThe length of the user name field in a header buffer.static java.lang.StringVERSION_GNU_SPACEstatic java.lang.StringVERSION_GNU_ZEROstatic intVERSION_OFFSETOffset of start of magic field within header recordstatic java.lang.StringVERSION_POSIXstatic intVERSIONLENPreviously this was regarded as part of "magic" field, but it is separate.
 
- 
- 
- 
Field Detail- 
FORMAT_OLDGNUstatic final int FORMAT_OLDGNU GNU format as per before tar 1.12.- See Also:
- Constant Field Values
 
 - 
FORMAT_POSIXstatic final int FORMAT_POSIX Pure Posix format.- See Also:
- Constant Field Values
 
 - 
NAMELENstatic final int NAMELEN The length of the name field in a header buffer.- See Also:
- Constant Field Values
 
 - 
MODELENstatic final int MODELEN The length of the mode field in a header buffer.- See Also:
- Constant Field Values
 
 - 
UIDLENstatic final int UIDLEN The length of the user id field in a header buffer.- See Also:
- Constant Field Values
 
 - 
GIDLENstatic final int GIDLEN The length of the group id field in a header buffer.- See Also:
- Constant Field Values
 
 - 
MAXIDstatic final long 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:
- Constant Field Values
 
 - 
CHKSUMLENstatic final int CHKSUMLEN The length of the checksum field in a header buffer.- See Also:
- Constant Field Values
 
 - 
SIZELENstatic final int SIZELEN The length of the size field in a header buffer. Includes the trailing space or NUL.- See Also:
- Constant Field Values
 
 - 
MAXSIZEstatic final long 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:
- Constant Field Values
 
 - 
MAGIC_OFFSETstatic final int MAGIC_OFFSET Offset of start of magic field within header record- See Also:
- Constant Field Values
 
 - 
MAGICLENstatic final int MAGICLEN The length of the magic field in a header buffer including the version.- See Also:
- Constant Field Values
 
 - 
PURE_MAGICLENstatic final int PURE_MAGICLEN The length of the magic field in a header buffer.- See Also:
- Constant Field Values
 
 - 
VERSION_OFFSETstatic final int VERSION_OFFSET Offset of start of magic field within header record- See Also:
- Constant Field Values
 
 - 
VERSIONLENstatic final int VERSIONLEN Previously this was regarded as part of "magic" field, but it is separate.- See Also:
- Constant Field Values
 
 - 
MODTIMELENstatic final int MODTIMELEN The length of the modification time field in a header buffer.- See Also:
- Constant Field Values
 
 - 
UNAMELENstatic final int UNAMELEN The length of the user name field in a header buffer.- See Also:
- Constant Field Values
 
 - 
GNAMELENstatic final int GNAMELEN The length of the group name field in a header buffer.- See Also:
- Constant Field Values
 
 - 
DEVLENstatic final int DEVLEN The length of each of the device fields (major and minor) in a header buffer.- See Also:
- Constant Field Values
 
 - 
PREFIXLENstatic final int PREFIXLEN Length of the prefix field.- See Also:
- Constant Field Values
 
 - 
ATIMELEN_GNUstatic final int ATIMELEN_GNU The length of the access time field in an old GNU header buffer.- See Also:
- Constant Field Values
 
 - 
CTIMELEN_GNUstatic final int CTIMELEN_GNU The length of the created time field in an old GNU header buffer.- See Also:
- Constant Field Values
 
 - 
OFFSETLEN_GNUstatic final int OFFSETLEN_GNU The length of the multivolume start offset field in an old GNU header buffer.- See Also:
- Constant Field Values
 
 - 
LONGNAMESLEN_GNUstatic final int LONGNAMESLEN_GNU The length of the long names field in an old GNU header buffer.- See Also:
- Constant Field Values
 
 - 
PAD2LEN_GNUstatic final int PAD2LEN_GNU The length of the padding field in an old GNU header buffer.- See Also:
- Constant Field Values
 
 - 
SPARSELEN_GNUstatic final int SPARSELEN_GNU The sum of the length of all sparse headers in an old GNU header buffer.- See Also:
- Constant Field Values
 
 - 
ISEXTENDEDLEN_GNUstatic final int ISEXTENDEDLEN_GNU The length of the is extension field in an old GNU header buffer.- See Also:
- Constant Field Values
 
 - 
REALSIZELEN_GNUstatic final int REALSIZELEN_GNU The length of the real size field in an old GNU header buffer.- See Also:
- Constant Field Values
 
 - 
SPARSELEN_GNU_SPARSEstatic final int SPARSELEN_GNU_SPARSE The sum of the length of all sparse headers in a sparse header buffer.- See Also:
- Constant Field Values
 
 - 
ISEXTENDEDLEN_GNU_SPARSEstatic final int ISEXTENDEDLEN_GNU_SPARSE The length of the is extension field in a sparse header buffer.- See Also:
- Constant Field Values
 
 - 
LF_OLDNORMstatic final byte 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:
- Constant Field Values
 
 - 
LF_NORMALstatic final byte LF_NORMAL Normal file type.- See Also:
- Constant Field Values
 
 - 
LF_LINKstatic final byte LF_LINK Link file type.- See Also:
- Constant Field Values
 
 - 
LF_SYMLINKstatic final byte LF_SYMLINK Symbolic link file type.- See Also:
- Constant Field Values
 
 - 
LF_CHRstatic final byte LF_CHR Character device file type.- See Also:
- Constant Field Values
 
 - 
LF_BLKstatic final byte LF_BLK Block device file type.- See Also:
- Constant Field Values
 
 - 
LF_DIRstatic final byte LF_DIR Directory file type.- See Also:
- Constant Field Values
 
 - 
LF_FIFOstatic final byte LF_FIFO FIFO (pipe) file type.- See Also:
- Constant Field Values
 
 - 
LF_CONTIGstatic final byte LF_CONTIG Contiguous file type.- See Also:
- Constant Field Values
 
 - 
LF_GNUTYPE_LONGLINKstatic final byte LF_GNUTYPE_LONGLINK Identifies the *next* file on the tape as having a long linkname.- See Also:
- Constant Field Values
 
 - 
LF_GNUTYPE_LONGNAMEstatic final byte LF_GNUTYPE_LONGNAME Identifies the *next* file on the tape as having a long name.- See Also:
- Constant Field Values
 
 - 
LF_GNUTYPE_SPARSEstatic final byte LF_GNUTYPE_SPARSE Sparse file type.- See Also:
- Constant Field Values
 
 - 
LF_PAX_EXTENDED_HEADER_LCstatic final byte LF_PAX_EXTENDED_HEADER_LC Identifies the entry as a Pax extended header.- See Also:
- Constant Field Values
 
 - 
LF_PAX_EXTENDED_HEADER_UCstatic final byte LF_PAX_EXTENDED_HEADER_UC Identifies the entry as a Pax extended header (SunOS tar -E).- See Also:
- Constant Field Values
 
 - 
LF_PAX_GLOBAL_EXTENDED_HEADERstatic final byte LF_PAX_GLOBAL_EXTENDED_HEADER Identifies the entry as a Pax global extended header.- See Also:
- Constant Field Values
 
 - 
TMAGICstatic final java.lang.String TMAGIC - See Also:
- Constant Field Values
 
 - 
MAGIC_POSIXstatic final java.lang.String MAGIC_POSIX The magic tag representing a POSIX tar archive.- See Also:
- Constant Field Values
 
 - 
VERSION_POSIXstatic final java.lang.String VERSION_POSIX - See Also:
- Constant Field Values
 
 - 
GNU_TMAGICstatic final java.lang.String GNU_TMAGIC The magic tag representing a GNU tar archive.- See Also:
- Constant Field Values
 
 - 
VERSION_GNU_SPACEstatic final java.lang.String VERSION_GNU_SPACE - See Also:
- Constant Field Values
 
 - 
VERSION_GNU_ZEROstatic final java.lang.String VERSION_GNU_ZERO - See Also:
- Constant Field Values
 
 - 
GNU_LONGLINKstatic final java.lang.String GNU_LONGLINK The name of the GNU tar entry which contains a long name.- See Also:
- Constant Field Values
 
 
- 
 
-