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.InputStream
This 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 int
read()
Returns 0.long
skip(long n)
Returns the input.
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
Returns 0.- Specified by:
read
in classjava.io.InputStream
- Returns:
- 0
- Throws:
java.io.IOException
-
skip
public long skip(long n)
Returns the input.- Overrides:
skip
in classjava.io.InputStream
- Parameters:
n
- bytes to skip- Returns:
- bytes actually skipped
-
-