Class TarArchiveSparseZeroInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.compress.archivers.tar.TarArchiveSparseZeroInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
This is an InputStream that always return 0, this is used when reading the "holes" of a sparse file
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset
-
Constructor Details
-
TarArchiveSparseZeroInputStream
TarArchiveSparseZeroInputStream()
-
-
Method Details
-
read
Returns 0.- Specified by:
read
in classInputStream
- Returns:
- 0
- Throws:
IOException
-
skip
public long skip(long n) Returns the input.- Overrides:
skip
in classInputStream
- Parameters:
n
- bytes to skip- Returns:
- bytes actually skipped
-