Class Bzip2InputStreamFactory
- java.lang.Object
-
- org.apache.flink.api.common.io.compression.Bzip2InputStreamFactory
-
- All Implemented Interfaces:
InflaterInputStreamFactory<org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream>
@Internal public class Bzip2InputStreamFactory extends Object implements InflaterInputStreamFactory<org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream>
Factory for Bzip2 decompressors.
-
-
Constructor Summary
Constructors Constructor Description Bzip2InputStreamFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStreamcreate(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 Bzip2InputStreamFactorygetInstance()
-
-
-
Method Detail
-
getInstance
public static Bzip2InputStreamFactory getInstance()
-
create
public org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream create(InputStream in) throws IOException
Description copied from interface:InflaterInputStreamFactoryCreates aInflaterInputStreamthat wraps the given input stream.- Specified by:
createin interfaceInflaterInputStreamFactory<org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream>- 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<org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream>- Returns:
- a (possibly empty) collection of lower-case file extensions, without the period
-
-