org.bouncycastle.bcpg
Class BCPGOutputStream
OutputStreamorg.bouncycastle.bcpg.BCPGOutputStream
- CompressionAlgorithmTags, PacketTags
public class BCPGOutputStream
extends OutputStream
Basic output stream.
COMPRESSED_DATA, EXPERIMENTAL_1, EXPERIMENTAL_2, EXPERIMENTAL_3, EXPERIMENTAL_4, LITERAL_DATA, MARKER, MOD_DETECTION_CODE, ONE_PASS_SIGNATURE, PUBLIC_KEY, PUBLIC_KEY_ENC_SESSION, PUBLIC_SUBKEY, RESERVED, SECRET_KEY, SECRET_SUBKEY, SIGNATURE, SYMMETRIC_KEY_ENC, SYMMETRIC_KEY_ENC_SESSION, SYM_ENC_INTEGRITY_PRO, TRUST, USER_ATTRIBUTE, USER_ID |
BCPGOutputStream(OutputStream out)
|
BCPGOutputStream(OutputStream out, int tag)- Create a stream representing an old style partial object.
|
BCPGOutputStream(OutputStream out, int tag, byte[] buffer)- Create a new style partial input stream buffered into chunks.
|
BCPGOutputStream(OutputStream out, int tag, long length)
|
BCPGOutputStream(OutputStream out, int tag, long length, boolean oldFormat)- Create a stream representing a general packet.
|
BCPGOutputStream
public BCPGOutputStream(OutputStream out)
BCPGOutputStream
public BCPGOutputStream(OutputStream out,
int tag)
throws IOException Create a stream representing an old style partial object.
tag - the packet tag for the object.
BCPGOutputStream
public BCPGOutputStream(OutputStream out,
int tag,
byte[] buffer)
throws IOException Create a new style partial input stream buffered into chunks.
out - output stream to write to.tag - packet tag.buffer - size of chunks making up the packet.
BCPGOutputStream
public BCPGOutputStream(OutputStream out,
int tag,
long length)
throws IOException
BCPGOutputStream
public BCPGOutputStream(OutputStream out,
int tag,
long length,
boolean oldFormat)
throws IOException Create a stream representing a general packet.
out - tag - length - oldFormat -
close
public void close()
throws IOException
finish
public void finish()
throws IOException Finish writing out the current packet without closing the underlying stream.
flush
public void flush()
throws IOException Flush the underlying stream.
write
public void write(byte[] bytes,
int off,
int len)
throws IOException
write
public void write(int b)
throws IOException
writeObject
public void writeObject(BCPGObject o)
throws IOException