Class TarArchiveSparseZeroInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.compress.archivers.tar.TarArchiveSparseZeroInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
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()Just return 0longskip(long n)these's nothing need to do when skipping
-
-
-
Method Detail
-
read
public int read() throws java.io.IOExceptionJust return 0- Specified by:
readin classjava.io.InputStream- Returns:
- Throws:
java.io.IOException
-
skip
public long skip(long n)
these's nothing need to do when skipping- Overrides:
skipin classjava.io.InputStream- Parameters:
n- bytes to skip- Returns:
- bytes actually skipped
-
-