Package org.bouncycastle.util.io.pem
Class PemReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- org.bouncycastle.util.io.pem.PemReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class PemReader extends java.io.BufferedReader
A generic PEM reader, based on the format outlined in RFC 1421
-
-
Constructor Summary
Constructors Constructor Description PemReader(java.io.Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PemObject
readPemObject()
Read the next PEM object as a blob of raw data with header information.
-
-
-
Method Detail
-
readPemObject
public PemObject readPemObject() throws java.io.IOException
Read the next PEM object as a blob of raw data with header information.- Returns:
- the next object in the stream, null if no objects left.
- Throws:
java.io.IOException
- in case of a parse error.
-
-