| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| pack-priv OutputStream | |
| private PacketFormat | |
| private byte[] | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | BCPGOutputStream(OutputStream
output stream to write encoded data to. out)Base constructor - generate a PGP protocol encoding with old-style packets whenever there is an alternative for backwards compatibility. |
| public | BCPGOutputStream(OutputStream
output stream to write encoded data to. out, boolean true if use new format packets, false if backwards compatible preferred. newFormatOnly)Base constructor specifying whether to use packets in the new format wherever possible. |
| public | |
| public | BCPGOutputStream(OutputStream out, int
the packet tag for the object. tag)Create a stream representing an old style partial object. |
| public | BCPGOutputStream(OutputStream out, int tag, long length, boolean oldFormat)
Create a stream representing a general packet. |
| public | |
| public | BCPGOutputStream(OutputStream
output stream to write to. out, int packet tag. tag, byte[] size of chunks making up the packet. buffer)Create a new style partial input stream buffered into chunks. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | |
| public void | flush()
Overrides java. Implements java. Flush the underlying stream. |
| private void | |
| public static BCPGOutputStream | Returns: BCPGOutputStreamoutput stream out)If the argument is a |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. bytes, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| private void | |
| public void | |
| public void | |
| pack-priv void | |
| pack-priv void | writePacket(boolean
whether the packet prefers to be encoded using the new packet format objectPrefersNewPacketFormat, int packet tag tag, byte[] packet body body)Write a packet. |
| pack-priv void | writePacket(int
packet tag tag, byte[] packet body body, boolean if true, old format is forced, else force new format oldFormat)Write a packet, forcing the packet format to be either old or new. |
| private void | |
| private void |
| BUF_SIZE_POWER | back to summary |
|---|---|
| private static final int BUF_SIZE_POWER | |
| out | back to summary |
|---|---|
| pack-priv OutputStream out | |
| packetFormat | back to summary |
|---|---|
| private PacketFormat packetFormat | |
| partialBuffer | back to summary |
|---|---|
| private byte[] partialBuffer | |
| partialBufferLength | back to summary |
|---|---|
| private int partialBufferLength | |
| partialOffset | back to summary |
|---|---|
| private int partialOffset | |
| partialPower | back to summary |
|---|---|
| private int partialPower | |
| BCPGOutputStream | back to summary |
|---|---|
| public BCPGOutputStream(OutputStream out) Base constructor - generate a PGP protocol encoding with old-style packets whenever there is an alternative for backwards compatibility.
| |
| BCPGOutputStream | back to summary |
|---|---|
| public BCPGOutputStream(OutputStream out, boolean newFormatOnly) Base constructor specifying whether to use packets in the new format wherever possible.
| |
| BCPGOutputStream | back to summary |
|---|---|
| public BCPGOutputStream(OutputStream out, PacketFormat packetFormat) | |
| BCPGOutputStream | back to summary |
|---|---|
| public BCPGOutputStream(OutputStream out, int tag) throws IOException Create a stream representing an old style partial object.
| |
| BCPGOutputStream | back to summary |
|---|---|
| public BCPGOutputStream(OutputStream out, int tag, long length, boolean oldFormat) throws IOException Create a stream representing a general packet. | |
| BCPGOutputStream | back to summary |
|---|---|
| public BCPGOutputStream(OutputStream out, int tag, long length) throws IOException | |
| BCPGOutputStream | back to summary |
|---|---|
| public BCPGOutputStream(OutputStream out, int tag, byte[] buffer) throws IOException Create a new style partial input stream buffered into chunks.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| finish | back to summary |
|---|---|
| public void finish() throws IOException Finish writing out the current packet without closing the underlying stream. | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Flush the underlying stream.
| |
| partialFlush | back to summary |
|---|---|
| private void partialFlush(boolean isLast) throws IOException | |
| wrap | back to summary |
|---|---|
| public static BCPGOutputStream wrap(OutputStream out) If the argument is a
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| writeHeader | back to summary |
|---|---|
| private void writeHeader(int tag, boolean oldPackets, boolean partial, long bodyLen) throws IOException | |
| writeObject | back to summary |
|---|---|
| public void writeObject(BCPGObject o) throws IOException | |
| writePacket | back to summary |
|---|---|
| public void writePacket(ContainedPacket p) throws IOException Write a packet to the stream.
| |
| writePacket | back to summary |
|---|---|
| pack-priv void writePacket(int tag, byte[] body) throws IOException Write a packet to the stream.
The packet will use the old encoding format if
| |
| writePacket | back to summary |
|---|---|
| pack-priv void writePacket(boolean objectPrefersNewPacketFormat, int tag, byte[] body) throws IOException Write a packet.
The packet format will be chosen primarily based on
| |
| writePacket | back to summary |
|---|---|
| pack-priv void writePacket(int tag, byte[] body, boolean oldFormat) throws IOException Write a packet, forcing the packet format to be either old or new.
| |
| writePartial | back to summary |
|---|---|
| private void writePartial(byte b) throws IOException | |
| writePartial | back to summary |
|---|---|
| private void writePartial(byte[] buf, int off, int len) throws IOException | |