Top Description Constructors Methods
org.apache.commons.compress.archivers.tar

pack-priv final Class TarArchiveSparseZeroInputStream

extends InputStream
Class Inheritance
Imports
java.io.IOException, .InputStream

This is an InputStream that always return 0, this is used when reading the "holes" of a sparse file

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

0
read
()

Implements abstract java.io.InputStream.read.

Returns 0.
public long

Returns:

bytes actually skipped
skip
(final long
bytes to skip
n
)

Overrides java.io.InputStream.skip.

Returns the input.
Inherited from java.io.InputStream:
availableclosemarkmarkSupportednullInputStreamreadreadreadAllBytesreadNBytesreadNBytesresetskipNBytestransferTo

Constructor Detail

TarArchiveSparseZeroInputStreamback to summary
pack-priv TarArchiveSparseZeroInputStream()

Method Detail

readback to summary
public int read() throws IOException

Implements abstract java.io.InputStream.read.

Returns 0.

Returns:int

0

Annotations
@Override
Exceptions
IOException:

Doc from java.io.InputStream.read.

if an I/O error occurs.

skipback to summary
public long skip(final long n)

Overrides java.io.InputStream.skip.

Returns the input.

Parameters
n:long

bytes to skip

Returns:long

bytes actually skipped

Annotations
@Override