CompressedDataParser (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.asn1.cms

## Class CompressedDataParser

- java.lang.Object
- - org.bouncycastle.asn1.cms.CompressedDataParser

-     public class CompressedDataParser
      extends java.lang.Object

  Parser of RFC 3274 `CompressedData` object.

       CompressedData ::= SEQUENCE {
           version CMSVersion,
           compressionAlgorithm CompressionAlgorithmIdentifier,
           encapContentInfo EncapsulatedContentInfo
       }

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CompressedDataParser(ASN1SequenceParser seq)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `AlgorithmIdentifier` | `getCompressionAlgorithmIdentifier()`
    `ContentInfoParser` | `getEncapContentInfo()`
    `ASN1Integer` | `getVersion()`

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

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

- - ### Constructor Detail

    - #### CompressedDataParser

          public CompressedDataParser(ASN1SequenceParser seq)
                               throws java.io.IOException

      Throws:
        `java.io.IOException`

  - ### Method Detail

    - #### getVersion

          public ASN1Integer getVersion()

    - #### getCompressionAlgorithmIdentifier

          public AlgorithmIdentifier getCompressionAlgorithmIdentifier()

    - #### getEncapContentInfo

          public ContentInfoParser getEncapContentInfo()