com.ibm.security.certclient.util
Class PkBase64OutputStream
- java.lang.Object
java.io.OutputStream
com.ibm.security.certclient.util.PkBase64OutputStream
All implemented interfaces:
- public class PkBase64OutputStream
- extends OutputStream
end()
method.Restriction: not thread-safe.
Author:
Rod Mancisidor
Field Summary
Modifier and Type | Field and Description |
---|---|
|
base64Values
Provides the character to value map based on RFC1521.
|
|
sccsid
|
Constructor Summary
Constructor and Description |
---|
PkBase64OutputStream(OutputStream out)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
end()
This is similar to flush().
|
|
write(int b)
|
Methods inherited from class java.io.OutputStream |
---|
close, flush, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
sccsid
- public static final String sccsid
See Also:
base64Values
- public static final char[] base64Values
Provides the character to value map based on RFC1521.
Constructor Detail
PkBase64OutputStream
- public PkBase64OutputStream(OutputStream out)
- throws IOException
Throws:
Method Detail
write
- public void write(int b)
- throws IOException
Specified by:
write
in class OutputStream
Throws:
end
- public void end()
- throws IOException
This is similar to flush(). You must call it once you are done writing
the base 64 encoded stream. It adds the possible terminating equal
signs to the base 64 encoding and a terminating newline if necessary.
Unlike flush(), this method should be called only once.
Throws: