Class TarBzInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.jboss.shrinkwrap.impl.base.io.tar.TarInputStream
-
- org.jboss.shrinkwrap.impl.base.io.tar.TarBzInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class TarBzInputStream extends TarInputStream
TheTarBzInputStream
reads a UNIX TAR archive, further encoded in BZIP compresssion, as an InputStream. Methods are provided to position at each successive entry in the archive, and the read each entry as a normal input stream using read().- Author:
- ALR, Tair Sabirgaliev
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.shrinkwrap.impl.base.io.tar.TarInputStream
TarInputStream.EntryAdapter, TarInputStream.EntryFactory
-
-
Field Summary
-
Fields inherited from class org.jboss.shrinkwrap.impl.base.io.tar.TarInputStream
buffer, currEntry, debug, eFactory, entryOffset, entrySize, hasHitEOF, oneBuf, readBuf
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description TarBzInputStream(InputStream is)
TarBzInputStream(InputStream is, int blockSize)
TarBzInputStream(InputStream is, int blockSize, int recordSize)
-
Method Summary
-
Methods inherited from class org.jboss.shrinkwrap.impl.base.io.tar.TarInputStream
available, close, copyEntryContents, getEntryPosition, getNextEntry, getRecordSize, getStreamPosition, mark, markSupported, read, read, read, reset, setBufferDebug, setDebug, setEntryFactory, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
TarBzInputStream
public TarBzInputStream(InputStream is) throws IOException
- Parameters:
is
-- Throws:
IOException
-
TarBzInputStream
public TarBzInputStream(InputStream is, int blockSize) throws IOException
- Parameters:
is
-blockSize
-- Throws:
IOException
-
TarBzInputStream
public TarBzInputStream(InputStream is, int blockSize, int recordSize) throws IOException
- Parameters:
is
-blockSize
-recordSize
-- Throws:
IOException
-
-