Top Description Constructors Methods
org.bouncycastle.x509

public abstract Class X509StreamParserSpi

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jce.provider.X509AttrCertParser, org.bouncycastle.jce.provider.X509CertPairParser, org.bouncycastle.jce.provider.X509CertParser, org.bouncycastle.jce.provider.X509CRLParser
Imports
org.bouncycastle.x509.util.StreamParsingException, java.io.InputStream, java.util.Collection

This abstract class defines the service provider interface (SPI) for X509StreamParser.
See Also
org.bouncycastle.x509.X509StreamParser

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
engineInit(InputStream
The input stream.
in
)

Initializes this stream parser with the input stream.

public abstract Object

Returns:

the next X.509 object in the stream or null if the end of the stream is reached.
engineRead
()

Returns the next X.509 object of the type of this SPI from the given input stream.

public abstract Collection<E>

Returns:

A collection of all X.509 objects in the input stream or null if the end of the stream is reached.
engineReadAll
()

Returns all X.509 objects of the type of this SPI from the given input stream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

X509StreamParserSpiback to summary
public X509StreamParserSpi()

Method Detail

engineInitback to summary
public abstract void engineInit(InputStream in)

Initializes this stream parser with the input stream.

Parameters
in:InputStream

The input stream.

engineReadback to summary
public abstract Object engineRead() throws StreamParsingException

Returns the next X.509 object of the type of this SPI from the given input stream.

Returns:Object

the next X.509 object in the stream or null if the end of the stream is reached.

Exceptions
StreamParsingException:
if the object cannot be created from input stream.
engineReadAllback to summary
public abstract Collection<E> engineReadAll() throws StreamParsingException

Returns all X.509 objects of the type of this SPI from the given input stream.

Returns:Collection<E>

A collection of all X.509 objects in the input stream or null if the end of the stream is reached.

Exceptions
StreamParsingException:
if an object cannot be created from input stream.