Class DeflateInflaterInputStreamFactory
- java.lang.Object
-
- org.apache.flink.api.common.io.compression.DeflateInflaterInputStreamFactory
-
- All Implemented Interfaces:
InflaterInputStreamFactory<InflaterInputStream>
@Internal public class DeflateInflaterInputStreamFactory extends Object implements InflaterInputStreamFactory<InflaterInputStream>
Factory for input streams that decompress the "deflate" compression format.
-
-
Constructor Summary
Constructors Constructor Description DeflateInflaterInputStreamFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InflaterInputStreamcreate(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.static DeflateInflaterInputStreamFactorygetInstance()
-
-
-
Method Detail
-
getInstance
public static DeflateInflaterInputStreamFactory getInstance()
-
create
public InflaterInputStream create(InputStream in) throws IOException
Description copied from interface:InflaterInputStreamFactoryCreates aInflaterInputStreamthat wraps the given input stream.- Specified by:
createin interfaceInflaterInputStreamFactory<InflaterInputStream>- Parameters:
in- is the compressed input stream- Returns:
- the inflated input stream
- Throws:
IOException
-
getCommonFileExtensions
public Collection<String> getCommonFileExtensions()
Description copied from interface:InflaterInputStreamFactoryLists a collection of typical file extensions (e.g., "gz", "gzip") that are associated with the compression algorithm in theInflaterInputStreamT.- Specified by:
getCommonFileExtensionsin interfaceInflaterInputStreamFactory<InflaterInputStream>- Returns:
- a (possibly empty) collection of lower-case file extensions, without the period
-
-