org.bouncycastle.bcpg
public class BCPGOutputStream extends OutputStream implements PacketTags, CompressionAlgorithmTags
| Constructor Summary | |
|---|---|
| BCPGOutputStream(OutputStream out) | |
| BCPGOutputStream(OutputStream out, int tag)
Create a stream representing an old style partial object.
| |
| BCPGOutputStream(OutputStream out, int tag, long length, boolean oldFormat)
Create a stream representing a general packet.
| |
| BCPGOutputStream(OutputStream out, int tag, long length) | |
| BCPGOutputStream(OutputStream out, int tag, byte[] buffer)
Create a new style partial input stream buffered into chunks.
| |
| Method Summary | |
|---|---|
| void | close() |
| void | finish()
Finish writing out the current packet without closing the underlying stream. |
| void | flush()
Flush the underlying stream. |
| void | write(int b) |
| void | write(byte[] bytes, int off, int len) |
| void | writeObject(BCPGObject o) |
| void | writePacket(ContainedPacket p) |
Parameters: tag the packet tag for the object.
Parameters: out tag length oldFormat
Throws: IOException
Parameters: tag length
Throws: IOException
Parameters: out output stream to write to. tag packet tag. buffer size of chunks making up the packet.
Throws: IOException