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

org.bouncycastle.cms

## Class PKCS7TypedStream

- java.lang.Object
- - org.bouncycastle.cms.CMSTypedStream
  - - org.bouncycastle.cms.PKCS7TypedStream

-     public class PKCS7TypedStream
      extends CMSTypedStream

- - ### Field Summary

    - ### Fields inherited from class org.bouncycastle.cms.CMSTypedStream

      `_in`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PKCS7TypedStream(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.asn1.ASN1Encodable encodable)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `drain()`
    `org.bouncycastle.asn1.ASN1Encodable` | `getContent()`
    `java.io.InputStream` | `getContentStream()`

    - ### Methods inherited from class org.bouncycastle.cms.CMSTypedStream

      `getContentType`

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

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

- - ### Constructor Detail

    - #### PKCS7TypedStream

          public PKCS7TypedStream(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
                          org.bouncycastle.asn1.ASN1Encodable encodable)
                           throws java.io.IOException

      Throws:
        `java.io.IOException`

  - ### Method Detail

    - #### getContent

          public org.bouncycastle.asn1.ASN1Encodable getContent()

    - #### getContentStream

          public java.io.InputStream getContentStream()

      Overrides:
        `getContentStream` in class `CMSTypedStream`

    - #### drain

          public void drain()
                     throws java.io.IOException

      Overrides:
        `drain` in class `CMSTypedStream`
      Throws:
        `java.io.IOException`