Package org.bouncycastle.util.io.pem
Class PemWriter
java.lang.Object
java.io.Writer
java.io.BufferedWriter
org.bouncycastle.util.io.pem.PemWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
A generic PEM writer, based on RFC 1421
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOutputSize
(PemObject obj) Return the number of bytes or characters required to contain the passed in object if it is PEM encoded.void
writeObject
(PemObjectGenerator objGen)
-
Constructor Details
-
PemWriter
Base constructor.- Parameters:
out
- output stream to use.
-
-
Method Details
-
getOutputSize
Return the number of bytes or characters required to contain the passed in object if it is PEM encoded.- Parameters:
obj
- pem object to be output- Returns:
- an estimate of the number of bytes
-
writeObject
- Throws:
IOException
-