Interface InflaterInputStreamFactory<T extends InputStream>
-
- All Known Implementing Classes:
Bzip2InputStreamFactory,DeflateInflaterInputStreamFactory,GzipInflaterInputStreamFactory,XZInputStreamFactory,ZStandardInputStreamFactory
@Internal public interface InflaterInputStreamFactory<T extends InputStream>Creates a new instance of a certain subclass ofInflaterInputStream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tcreate(InputStream in)Creates aInflaterInputStreamthat wraps the given input stream.Collection<String>getCommonFileExtensions()Lists a collection of typical file extensions (e.g., "gz", "gzip") that are associated with the compression algorithm in theInflaterInputStreamT.
-
-
-
Method Detail
-
create
T create(InputStream in) throws IOException
Creates aInflaterInputStreamthat wraps the given input stream.- Parameters:
in- is the compressed input stream- Returns:
- the inflated input stream
- Throws:
IOException
-
getCommonFileExtensions
Collection<String> getCommonFileExtensions()
Lists a collection of typical file extensions (e.g., "gz", "gzip") that are associated with the compression algorithm in theInflaterInputStreamT.- Returns:
- a (possibly empty) collection of lower-case file extensions, without the period
-
-