| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.tar.TarArchiveSparseEntry
public class TarArchiveSparseEntry
This class represents a sparse entry in a Tar archive.
The C structure for a sparse entry is:
 struct posix_header {
 struct sparse sp[21]; // TarConstants.SPARSELEN_GNU_SPARSE     - offset 0
 char isextended;      // TarConstants.ISEXTENDEDLEN_GNU_SPARSE - offset 504
 };
 
 Whereas, "struct sparse" is:
 
 struct sparse {
 char offset[12];   // offset 0
 char numbytes[12]; // offset 12
 };
 
| Field Summary | 
|---|
| Constructor Summary | |
|---|---|
| TarArchiveSparseEntry(byte[] headerBuf)Construct an entry from an archive's header bytes. | |
| Method Summary | |
|---|---|
|  boolean | isExtended() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TarArchiveSparseEntry(byte[] headerBuf)
                      throws java.io.IOException
headerBuf - The header bytes from a tar archive entry.
java.io.IOException - on unknown format| Method Detail | 
|---|
public boolean isExtended()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||