public abstract class

X509StreamParserSpi

extends Object
java.lang.Object
   ↳ org.bouncycastle.x509.X509StreamParserSpi
Known Direct Subclasses

Class Overview

This abstract class defines the service provider interface (SPI) for X509StreamParser.

See Also

Summary

Public Constructors
X509StreamParserSpi()
Public Methods
abstract void engineInit(InputStream in)
Initializes this stream parser with the input stream.
abstract Object engineRead()
Returns the next X.509 object of the type of this SPI from the given input stream.
abstract Collection engineReadAll()
Returns all X.509 objects of the type of this SPI from the given input stream.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public X509StreamParserSpi ()

Public Methods

public abstract void engineInit (InputStream in)

Initializes this stream parser with the input stream.

Parameters
in The input stream.

public abstract Object engineRead ()

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

Returns
  • the next X.509 object in the stream or null if the end of the stream is reached.
Throws
StreamParsingException if the object cannot be created from input stream.

public abstract Collection engineReadAll ()

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

Returns
  • A collection of all X.509 objects in the input stream or null if the end of the stream is reached.
Throws
StreamParsingException if an object cannot be created from input stream.