Top Description Methods
org.bouncycastle.operator

public Interface OutputCompressor

Known Direct Implementers
org.bouncycastle.cms.jcajce.ZlibCompressor
Imports
java.io.OutputStream, org.bouncycastle.asn1.x509.AlgorithmIdentifier

General interface for an operator that is able to produce an OutputStream that will output compressed data.

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier

Returns:

algorithm oid and parameters.
getAlgorithmIdentifier
()

Return the algorithm identifier describing the compression algorithm and parameters this compressor uses.

public OutputStream

Returns:

a compressing OutputStream
getOutputStream
(OutputStream
output stream for compressed output.
comOut
)

Wrap the passed in output stream comOut, returning an output stream that compresses anything passed in before sending on to comOut.

Method Detail

getAlgorithmIdentifierback to summary
public AlgorithmIdentifier getAlgorithmIdentifier()

Return the algorithm identifier describing the compression algorithm and parameters this compressor uses.

Returns:AlgorithmIdentifier

algorithm oid and parameters.

getOutputStreamback to summary
public 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.

Parameters
comOut:OutputStream

output stream for compressed output.

Returns:OutputStream

a compressing OutputStream