org.bouncycastle.bcpg

Class ArmoredOutputStream


public class ArmoredOutputStream
extends OutputStream

Basic output stream.

Constructor Summary

ArmoredOutputStream(OutputStream out)

Method Summary

void
beginClearText(int hashAlgorithm)
Start a clear text signed message.
void
close()
Note: close does nor close the underlying stream.
void
endClearText()
void
flush()
void
write(int b)

Constructor Details

ArmoredOutputStream

public ArmoredOutputStream(OutputStream out)

Method Details

beginClearText

public void beginClearText(int hashAlgorithm)
            throws IOException
Start a clear text signed message.

Parameters:
hashAlgorithm -


close

public void close()
            throws IOException
Note: close does nor close the underlying stream. So it is possible to write multiple objects using armoring to a single stream.


endClearText

public void endClearText()


flush

public void flush()
            throws IOException


write

public void write(int b)
            throws IOException