Interface StreamUnpacker
-
- All Known Implementing Classes:
GzipUnpacker,JarDiffUnpacker,NotUnpacker,PackGzipUnpacker
interface StreamUnpackerAllows to unpack an input stream.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGZIP_ENCODINGstatic LoggerLOGstatic java.lang.StringPACK_200_GZIP_ENCODINGstatic java.lang.StringPACK_GZ_EXTENSION
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static StreamUnpackergetCompressionUnpacker(DownloadDetails downloadDetails)static StreamUnpackergetContentUnpacker(DownloadDetails downloadDetails, java.net.URL resourceHref)java.io.InputStreamunpack(java.io.InputStream input)Unpacks the content of the input stream.
-
-
-
Field Detail
-
LOG
static final Logger LOG
-
GZIP_ENCODING
static final java.lang.String GZIP_ENCODING
- See Also:
- Constant Field Values
-
PACK_200_GZIP_ENCODING
static final java.lang.String PACK_200_GZIP_ENCODING
- See Also:
- Constant Field Values
-
PACK_GZ_EXTENSION
static final java.lang.String PACK_GZ_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCompressionUnpacker
static StreamUnpacker getCompressionUnpacker(DownloadDetails downloadDetails)
-
getContentUnpacker
static StreamUnpacker getContentUnpacker(DownloadDetails downloadDetails, java.net.URL resourceHref)
-
unpack
java.io.InputStream unpack(java.io.InputStream input) throws java.io.IOExceptionUnpacks 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:
java.io.IOException- if anything goes wrong
-
-