public class

ZlibCompressor

extends Object
implements OutputCompressor
java.lang.Object
   ↳ org.bouncycastle.cms.jcajce.ZlibCompressor

Summary

Public Constructors
ZlibCompressor()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.operator.OutputCompressor

Public Constructors

public ZlibCompressor ()

Public Methods

public AlgorithmIdentifier getAlgorithmIdentifier ()

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

Returns
  • algorithm oid and parameters.

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