Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.util.io.pem
Class PemWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.BufferedWriter
              |
              +--org.bouncycastle.util.io.pem.PemWriter

public class PemWriter
extends java.io.BufferedWriter

A generic PEM writer, based on RFC 1421


Fields inherited from class java.io.Writer
lock
 
Constructor Summary
PemWriter(java.io.Writer out)
          Base constructor.
 
Method Summary
 int 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)
           
 
Methods inherited from class java.io.BufferedWriter
close, flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PemWriter

public PemWriter(java.io.Writer out)
Base constructor.
Parameters:
out - output stream to use.
Method Detail

getOutputSize

public int getOutputSize(PemObject obj)
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

public void writeObject(PemObjectGenerator objGen)
                 throws java.io.IOException

Bouncy Castle Cryptography Library 1.77.0