Class TarArchiveSparseZeroInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    final class TarArchiveSparseZeroInputStream
    extends java.io.InputStream
    This is an InputStream that always return 0, this is used when reading the "holes" of a sparse file
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int read()
      Returns 0.
      long skip​(long n)
      Returns the input.
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, read, read, reset
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TarArchiveSparseZeroInputStream

        TarArchiveSparseZeroInputStream()
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Returns 0.
        Specified by:
        read in class java.io.InputStream
        Returns:
        0
        Throws:
        java.io.IOException
      • skip

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