Interface StreamUnpacker
- All Known Implementing Classes:
GzipUnpacker, JarDiffUnpacker, NotUnpacker, PackGzipUnpacker
interface StreamUnpacker
Allows to unpack an input stream.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamUnpackergetCompressionUnpacker(DownloadDetails downloadDetails) static StreamUnpackergetContentUnpacker(DownloadDetails downloadDetails, URL resourceHref) unpack(InputStream input) Unpacks the content of the input stream.
-
Field Details
-
LOG
-
GZIP_ENCODING
- See Also:
-
PACK_200_GZIP_ENCODING
- See Also:
-
PACK_GZ_EXTENSION
- See Also:
-
-
Method Details
-
getCompressionUnpacker
-
getContentUnpacker
-
unpack
Unpacks the content of the input stream. Provides a new input stream with the unpacked content.- Parameters:
input- a compressed input stream- Returns:
- an unpacked input stream
- Throws:
IOException- if anything goes wrong
-