@Internal public class Bzip2InputStreamFactory extends Object implements InflaterInputStreamFactory<org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream>
Constructor and Description |
---|
Bzip2InputStreamFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream |
create(InputStream in)
Creates a
InflaterInputStream that 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 the
InflaterInputStream T . |
static Bzip2InputStreamFactory |
getInstance() |
public static Bzip2InputStreamFactory getInstance()
public org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream create(InputStream in) throws IOException
InflaterInputStreamFactory
InflaterInputStream
that wraps the given input stream.create
in interface InflaterInputStreamFactory<org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream>
in
- is the compressed input streamIOException
public Collection<String> getCommonFileExtensions()
InflaterInputStreamFactory
InflaterInputStream
T
.getCommonFileExtensions
in interface InflaterInputStreamFactory<org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.