Class TarArchiveSparseZeroInputStream

java.lang.Object
java.io.InputStream
kala.compress.archivers.tar.TarArchiveSparseZeroInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

final class TarArchiveSparseZeroInputStream extends InputStream
This is an InputStream that always return 0, this is used when reading the "holes" of a sparse file
  • Constructor Details

    • TarArchiveSparseZeroInputStream

      TarArchiveSparseZeroInputStream()
  • Method Details

    • read

      public int read()
      Returns 0.
      Specified by:
      read in class InputStream
      Returns:
      0.
    • skip

      public long skip(long n)
      Returns the input.
      Overrides:
      skip in class InputStream
      Parameters:
      n - bytes to skip
      Returns:
      bytes actually skipped