Class TarArchiveStructSparse
java.lang.Object
org.apache.commons.compress.archivers.tar.TarArchiveStructSparse
A
struct sparse in a Tar archive.
Whereas, "struct sparse" is:
struct sparse {
char offset[12]; // offset 0
char numbytes[12]; // offset 12
};
- Since:
- 1.20
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTarArchiveStructSparse(long offset, long numBytes) Constructs a new instance. -
Method Summary
-
Field Details
-
offset
private final long offset -
numbytes
private final long numbytes
-
-
Constructor Details
-
TarArchiveStructSparse
public TarArchiveStructSparse(long offset, long numBytes) Constructs a new instance.- Parameters:
offset- An offset greater or equal to zero.numBytes- An count greater or equal to zero.
-
-
Method Details
-
equals
-
getNumbytes
public long getNumbytes()Gets the byte count.- Returns:
- the byte count.
-
getOffset
public long getOffset()Gets the offset.- Returns:
- the offset.
-
hashCode
public int hashCode() -
toString
-