public interface CMSInputConnector
CMSInputConnector is used in place of a CMSInputStream when reading nested CMS objects.
A CMSInputConnector should be created for the enclosed object, and passed to a
CMSInputStream or CMSInputConnector for the enclosing object.
A CMSInputConnector expects the Content field of the CMS ContentInfo structure i.e.
the underlying input stream must be positioned just after the explicit [0] tag wrapper.
If the underlying input stream is positioned just at the beginning of the CMS ContentInfo
structure, use the CMSInputStream instead.
CMSInputStream| Modifier and Type | Method and Description |
|---|---|
ASN1ObjectID |
getEnclosedContentType()
Used to determine the content type of the enclosed content.
|
java.io.InputStream |
getInputStream()
Returns the input stream which is governed by this connector.
|
ASN1ObjectID getEnclosedContentType()
throws java.io.IOException
java.io.IOException - An I/O error occurred or the input encoding is incorrect.java.io.InputStream getInputStream()