public class GzipCodec extends DefaultCodec
限定符和类型 | 类和说明 |
---|---|
protected static class |
GzipCodec.GzipOutputStream
A bridge that wraps around a DeflaterOutputStream to make it
a CompressionOutputStream.
|
构造器和说明 |
---|
GzipCodec() |
getConf, setConf
public CompressionOutputStream createOutputStream(OutputStream out) throws IOException
CompressionCodec
CompressionOutputStream
that will write to the given
OutputStream
.createOutputStream
在接口中 CompressionCodec
createOutputStream
在类中 DefaultCodec
out
- the location for the final output streamIOException
public CompressionOutputStream createOutputStream(OutputStream out, Compressor compressor) throws IOException
CompressionCodec
CompressionOutputStream
that will write to the given
OutputStream
with the given Compressor
.createOutputStream
在接口中 CompressionCodec
createOutputStream
在类中 DefaultCodec
out
- the location for the final output streamcompressor
- compressor to useIOException
public Compressor createCompressor()
CompressionCodec
Compressor
for use by this CompressionCodec
.createCompressor
在接口中 CompressionCodec
createCompressor
在类中 DefaultCodec
public Class<? extends Compressor> getCompressorType()
CompressionCodec
Compressor
needed by this CompressionCodec
.getCompressorType
在接口中 CompressionCodec
getCompressorType
在类中 DefaultCodec
public CompressionInputStream createInputStream(InputStream in) throws IOException
CompressionCodec
createInputStream
在接口中 CompressionCodec
createInputStream
在类中 DefaultCodec
in
- the stream to read compressed bytes fromIOException
public CompressionInputStream createInputStream(InputStream in, Decompressor decompressor) throws IOException
CompressionCodec
CompressionInputStream
that will read from the given
InputStream
with the given Decompressor
.createInputStream
在接口中 CompressionCodec
createInputStream
在类中 DefaultCodec
in
- the stream to read compressed bytes fromdecompressor
- decompressor to useIOException
public Decompressor createDecompressor()
CompressionCodec
Decompressor
for use by this CompressionCodec
.createDecompressor
在接口中 CompressionCodec
createDecompressor
在类中 DefaultCodec
public Class<? extends Decompressor> getDecompressorType()
CompressionCodec
Decompressor
needed by this CompressionCodec
.getDecompressorType
在接口中 CompressionCodec
getDecompressorType
在类中 DefaultCodec
public String getDefaultExtension()
CompressionCodec
getDefaultExtension
在接口中 CompressionCodec
getDefaultExtension
在类中 DefaultCodec
Copyright © 2009 The Apache Software Foundation