Class TarGzInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.jboss.shrinkwrap.impl.base.io.tar.TarInputStream
org.jboss.shrinkwrap.impl.base.io.tar.TarGzInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
The
TarGzInputStream reads a UNIX TAR archive, further encoded in GZIP compression, 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
-
Nested Class Summary
Nested classes/interfaces inherited from class TarInputStream
TarInputStream.EntryAdapter, TarInputStream.EntryFactory -
Field Summary
Fields inherited from class TarInputStream
buffer, currEntry, debug, eFactory, entryOffset, entrySize, hasHitEOF, oneBuf, readBufFields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionTarGzInputStream(InputStream is, int blockSize) TarGzInputStream(InputStream is, int blockSize, int recordSize) -
Method Summary
Methods inherited from class TarInputStream
available, close, copyEntryContents, getEntryPosition, getNextEntry, getRecordSize, getStreamPosition, mark, markSupported, read, read, read, reset, setBufferDebug, setDebug, setEntryFactory, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
Constructor Details
-
TarGzInputStream
- Parameters:
is- TheInputStreamto read from.- Throws:
IOException
-
TarGzInputStream
- Parameters:
is- TheInputStreamto read from.blockSize- The block size for the TAR input stream.- Throws:
IOException
-
TarGzInputStream
- Parameters:
is- TheInputStreamto read from.blockSize- The block size for the TAR input stream.recordSize- The record size for the TAR input stream.- Throws:
IOException
-