public interface

OutputCompressor

org.bouncycastle.operator.OutputCompressor
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract AlgorithmIdentifier getAlgorithmIdentifier()
Return the algorithm identifier describing the compression algorithm and parameters this compressor uses.
abstract 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 Methods

public abstract AlgorithmIdentifier getAlgorithmIdentifier ()

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

Returns
  • algorithm oid and parameters.

public abstract 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 output stream for compressed output.
Returns
  • a compressing OutputStream