public class ZlibCompressor extends Object implements OutputCompressor
Constructor and Description |
---|
ZlibCompressor() |
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getAlgorithmIdentifier()
Return the algorithm identifier describing the compression
algorithm and parameters this compressor uses.
|
OutputStream |
getOutputStream(OutputStream comOut)
Wrap the passed in output stream comOut, returning an output stream
that compresses anything passed in before sending on to comOut.
|
public AlgorithmIdentifier getAlgorithmIdentifier()
OutputCompressor
getAlgorithmIdentifier
in interface OutputCompressor
public OutputStream getOutputStream(OutputStream comOut)
OutputCompressor
getOutputStream
in interface OutputCompressor
comOut
- output stream for compressed output.Copyright © 2015. All rights reserved.