Class TarArchiveSparseZeroInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.compress.archivers.tar.TarArchiveSparseZeroInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class TarArchiveSparseZeroInputStream extends java.io.InputStreamThis is an InputStream that always return 0, this is used when reading the "holes" of a sparse file
-
-
Constructor Summary
Constructors Constructor Description TarArchiveSparseZeroInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()Returns 0.longskip(long n)Returns the input.
-
-
-
Method Detail
-
read
public int read() throws java.io.IOExceptionReturns 0.- Specified by:
readin classjava.io.InputStream- Returns:
- 0
- Throws:
java.io.IOException
-
skip
public long skip(long n)
Returns the input.- Overrides:
skipin classjava.io.InputStream- Parameters:
n- bytes to skip- Returns:
- bytes actually skipped
-
-