Class TarArchiveInputStream.TarArchiveSparseZeroInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.compress.archivers.tar.TarArchiveInputStream.TarArchiveSparseZeroInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- TarArchiveInputStream
private static class TarArchiveInputStream.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 Modifier Constructor Description private
TarArchiveSparseZeroInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
Just return 0long
skip(long n)
these's nothing need to do when skipping
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
Just return 0- Specified by:
read
in classjava.io.InputStream
- Returns:
- Throws:
java.io.IOException
-
skip
public long skip(long n)
these's nothing need to do when skipping- Overrides:
skip
in classjava.io.InputStream
- Parameters:
n
- bytes to skip- Returns:
- bytes actually skipped
-
-