Package org.apache.commons.compress.archivers.tar

# Class TarArchiveStructSparse

java.lang.Object
org.apache.commons.compress.archivers.tar.TarArchiveStructSparse

public final class TarArchiveStructSparse extends Object
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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TarArchiveStructSparse(long offset, long numBytes)`
  Constructs a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object o)`
  `long`
  `getNumbytes()`
  Gets the byte count.
  `long`
  `getOffset()`
  Gets the offset.
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 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

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### 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()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`