| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| pack-priv OutputStream | |
| private byte[] | |
| private int | |
| private int | |
| private int | |
| private boolean |
| 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 or not to use packets in the new format wherever possible. |
| 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. |
| public void | |
| public void | flush()
Overrides java. Implements java. |
| private void | |
| public void | write(int
the b)byte.Implements abstract java. |
| 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. len bytes from the specified byte array
starting at offset off to this output stream.
|
| private void | |
| private void | |
| public void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| 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 | |
| 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 | |
| useOldFormat | back to summary |
|---|---|
| private boolean useOldFormat | |
| 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 or not to use packets in the new format wherever possible.
| |
| 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 | |
| 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 | |
| writeNewPacketLength | back to summary |
|---|---|
| private void writeNewPacketLength(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 | |
| writePacket | back to summary |
|---|---|
| pack-priv void writePacket(int tag, byte[] body) throws IOException | |
| writePacket | back to summary |
|---|---|
| pack-priv void writePacket(int tag, byte[] body, boolean oldFormat) throws IOException | |
| 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 | |