public class BERSequenceGenerator extends BERGenerator
_out| Constructor | Description |
|---|---|
BERSequenceGenerator(java.io.OutputStream out) |
Use the passed in stream as the target for the generator, writing out the header tag
for a constructed SEQUENCE.
|
BERSequenceGenerator(java.io.OutputStream out,
int tagNo,
boolean isExplicit) |
Use the passed in stream as the target for the generator, writing out the header tag
for a tagged constructed SEQUENCE (possibly implicit).
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addObject(ASN1Encodable object) |
Add an object to the SEQUENCE being generated.
|
void |
close() |
Close of the generator, writing out the BER end tag.
|
getRawOutputStream, writeBEREnd, writeBERHeaderpublic BERSequenceGenerator(java.io.OutputStream out)
throws java.io.IOException
out - target streamjava.io.IOException - if the target stream cannot be written to.public BERSequenceGenerator(java.io.OutputStream out,
int tagNo,
boolean isExplicit)
throws java.io.IOException
out - target streamtagNo - the tag number to introduceisExplicit - true if this is an explicitly tagged object, false otherwise.java.io.IOException - if the target stream cannot be written to.public void addObject(ASN1Encodable object) throws java.io.IOException
object - an ASN.1 encodable object to add.java.io.IOException - if the target stream cannot be written to or the object cannot be encoded.public void close()
throws java.io.IOException
java.io.IOException - if the target stream cannot be written.