ZlibExpanderProvider (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.cms.jcajce

## Class ZlibExpanderProvider

- java.lang.Object
- - org.bouncycastle.cms.jcajce.ZlibExpanderProvider

- All Implemented Interfaces:
    InputExpanderProvider

      public class ZlibExpanderProvider
      extends java.lang.Object
      implements InputExpanderProvider

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ZlibExpanderProvider()` Base constructor.
    `ZlibExpanderProvider(long limit)` Create a provider which caps the number of expanded bytes that can be produced when the compressed stream is parsed.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputExpander` | `get(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ZlibExpanderProvider

          public ZlibExpanderProvider()

      Base constructor. Create an expander which will not limit the size of any objects expanded in the stream.

    - #### ZlibExpanderProvider

          public ZlibExpanderProvider(long limit)

      Create a provider which caps the number of expanded bytes that can be produced when the compressed stream is parsed.
      Parameters:
        `limit` - max number of bytes allowed in an expanded stream.

  - ### Method Detail

    - #### get

          public InputExpander get(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)

      Specified by:
        `get` in interface `InputExpanderProvider`