|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Evolving public interface CompressionCodec
This class encapsulates a streaming compression/decompression pair.
Method Detail |
---|
CompressionOutputStream createOutputStream(OutputStream out) throws IOException
CompressionOutputStream
that will write to the given
OutputStream
.
out
- the location for the final output stream
IOException
CompressionOutputStream createOutputStream(OutputStream out, Compressor compressor) throws IOException
CompressionOutputStream
that will write to the given
OutputStream
with the given Compressor
.
out
- the location for the final output streamcompressor
- compressor to use
IOException
Class<? extends Compressor> getCompressorType()
Compressor
needed by this CompressionCodec
.
Compressor createCompressor()
Compressor
for use by this CompressionCodec
.
CompressionInputStream createInputStream(InputStream in) throws IOException
CompressionInputStream
that will read from the given
input stream.
in
- the stream to read compressed bytes from
IOException
CompressionInputStream createInputStream(InputStream in, Decompressor decompressor) throws IOException
CompressionInputStream
that will read from the given
InputStream
with the given Decompressor
.
in
- the stream to read compressed bytes fromdecompressor
- decompressor to use
IOException
Class<? extends Decompressor> getDecompressorType()
Decompressor
needed by this CompressionCodec
.
Decompressor createDecompressor()
Decompressor
for use by this CompressionCodec
.
String getDefaultExtension()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |