public class PemWriter
extends java.io.BufferedWriter
Modifier and Type | Field and Description |
---|---|
private char[] |
buf |
private static int |
LINE_LENGTH |
private int |
nlLength |
Constructor and Description |
---|
PemWriter(java.io.Writer out)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getOutputSize(PemObject obj)
Return the number of bytes or characters required to contain the
passed in object if it is PEM encoded.
|
private void |
writeEncoded(byte[] bytes) |
void |
writeObject(PemObjectGenerator objGen) |
private void |
writePostEncapsulationBoundary(java.lang.String type) |
private void |
writePreEncapsulationBoundary(java.lang.String type) |
private static final int LINE_LENGTH
private final int nlLength
private char[] buf
public PemWriter(java.io.Writer out)
out
- output stream to use.public int getOutputSize(PemObject obj)
obj
- pem object to be outputpublic void writeObject(PemObjectGenerator objGen) throws java.io.IOException
java.io.IOException
private void writeEncoded(byte[] bytes) throws java.io.IOException
java.io.IOException
private void writePreEncapsulationBoundary(java.lang.String type) throws java.io.IOException
java.io.IOException
private void writePostEncapsulationBoundary(java.lang.String type) throws java.io.IOException
java.io.IOException