Method Summary |
|
public void | close() Calls flush() then close() on the underlying stream. |
public void | flush() Calls flush() on the underlying stream. |
int | getLengthOfLength(int len) Returns the number of bytes writeLength() will write when called
with the given 'len'. |
public byte[] | toByteArray() Delegates to the underlying ByteArrayOutputStream if any. |
public void | write(AsnObject obj) Writes a DER-encoded AsnObject to the underlying stream. |
void | writeByte(byte b) |
void | writeBytes(byte[] data) |
void | writeLength(int len) Write a variable length length (yuk!) as per ASN.1/DER specification. |
void | writeType(byte type) |