Module kala.compress.archivers.tar
Package kala.compress.archivers.tar
Class TarArchiveSparseZeroInputStream
java.lang.Object
java.io.InputStream
kala.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, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
TarArchiveSparseZeroInputStream
TarArchiveSparseZeroInputStream()
-
-
Method Details
-
read
public int read()Returns 0.- Specified by:
readin classInputStream- Returns:
- 0.
-
skip
public long skip(long n) Returns the input.- Overrides:
skipin classInputStream- Parameters:
n- bytes to skip- Returns:
- bytes actually skipped
-