Class CMSProcessableInputStream

java.lang.Object
org.apache.fop.pdf.CMSProcessableInputStream
All Implemented Interfaces:
org.bouncycastle.cms.CMSProcessable, org.bouncycastle.cms.CMSTypedData

class CMSProcessableInputStream extends Object implements org.bouncycastle.cms.CMSTypedData
Wraps a InputStream into a CMSProcessable object for bouncy castle. It's a memory saving alternative to the CMSProcessableByteArray class.
  • Field Details

    • in

      private InputStream in
    • contentType

      private final org.bouncycastle.asn1.ASN1ObjectIdentifier contentType
  • Constructor Details

    • CMSProcessableInputStream

      CMSProcessableInputStream(InputStream is)
    • CMSProcessableInputStream

      CMSProcessableInputStream(org.bouncycastle.asn1.ASN1ObjectIdentifier type, InputStream is)
  • Method Details

    • getContent

      public Object getContent()
      Specified by:
      getContent in interface org.bouncycastle.cms.CMSProcessable
    • write

      public void write(OutputStream out) throws IOException
      Specified by:
      write in interface org.bouncycastle.cms.CMSProcessable
      Throws:
      IOException
    • getContentType

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
      Specified by:
      getContentType in interface org.bouncycastle.cms.CMSTypedData