org.apache.commons.compress.archivers.tar

## Class TarArchiveStructSparse

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

-     public final class TarArchiveStructSparse
      extends Object

  This class represents 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 and Description
    `TarArchiveStructSparse(long offset, long numbytes)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `long` | `getNumbytes()`
    `long` | `getOffset()`
    `int` | `hashCode()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### TarArchiveStructSparse

          public TarArchiveStructSparse(long offset,
                                        long numbytes)

  - ### Method Detail

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getOffset

          public long getOffset()

    - #### getNumbytes

          public long getNumbytes()

Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.