Class ArmoredOutputStream

java.lang.Object
java.io.OutputStream
org.bouncycastle.bcpg.ArmoredOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ArmoredOutputStream extends OutputStream
Output stream that writes data in ASCII Armored format.

Note 1: close() needs to be called on an ArmoredOutputStream to write the final checksum. flush() will not do this as other classes assume it is always fine to call flush() - it is not though if the checksum gets output. Note 2: as multiple PGP blobs are often written to the same stream, close() does not close the underlying stream.