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