Top Description Fields Constructors Methods
org.bouncycastle.util.io.pem

public Class PemReader

extends BufferedReader
Class Inheritance
Imports
java.io.BufferedReader, .IOException, .Reader, java.util.ArrayList, .List, java.util.logging.Level, .Logger, org.bouncycastle.util.encoders.Base64

A generic PEM reader, based on the format outlined in RFC 1421

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
public static final String
private static final Logger

Constructor Summary

AccessConstructor and Description
public
PemReader(Reader reader)

Method Summary

Modifier and TypeMethod and Description
private PemObject
public PemObject

Returns:

the next object in the stream, null if no objects left.
readPemObject
()

Read the next PEM object as a blob of raw data with header information.

Inherited from java.io.BufferedReader:
closelinesmarkmarkSupportedreadreadreadLinereadyresetskip

Field Detail

BEGINback to summary
private static final String BEGIN
ENDback to summary
private static final String END
LAX_PEM_PARSING_SYSTEM_PROPERTY_NAMEback to summary
public static final String LAX_PEM_PARSING_SYSTEM_PROPERTY_NAME
LOGback to summary
private static final Logger LOG

Constructor Detail

PemReaderback to summary
public PemReader(Reader reader)

Method Detail

loadObjectback to summary
private PemObject loadObject(String type) throws IOException
readPemObjectback to summary
public PemObject readPemObject() throws IOException

Read the next PEM object as a blob of raw data with header information.

Returns:PemObject

the next object in the stream, null if no objects left.

Exceptions
IOException:
in case of a parse error.