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, readAllBytes, readNBytes, reset, transferTo
-
Constructor Details
-
TarArchiveSparseZeroInputStream
TarArchiveSparseZeroInputStream()
-
-
Method Details
-
read
Just return 0- Specified by:
read
in classInputStream
- Returns:
- Throws:
IOException
-
skip
public long skip(long n) these's nothing need to do when skipping- Overrides:
skip
in classInputStream
- Parameters:
n
- bytes to skip- Returns:
- bytes actually skipped
-