public class DERSequenceGenerator extends DERGenerator
_out
Constructor and Description |
---|
DERSequenceGenerator(OutputStream out)
Use the passed in stream as the target for the generator.
|
DERSequenceGenerator(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 and Description |
---|---|
void |
addObject(ASN1Encodable object)
Add an object to the SEQUENCE being generated.
|
void |
close()
Close of the generator, writing out the SEQUENCE.
|
OutputStream |
getRawOutputStream()
Return the target stream for the SEQUENCE.
|
public DERSequenceGenerator(OutputStream out) throws IOException
out
- target streamIOException
- if the target stream cannot be written to.public DERSequenceGenerator(OutputStream out, int tagNo, boolean isExplicit) throws IOException
out
- target streamtagNo
- the tag number to introduceisExplicit
- true if this is an explicitly tagged object, false otherwise.IOException
- if the target stream cannot be written to.public void addObject(ASN1Encodable object) throws IOException
object
- an ASN.1 encodable object to add.IOException
- if the target stream cannot be written to or the object cannot be encoded.public OutputStream getRawOutputStream()
getRawOutputStream
in class ASN1Generator
public void close() throws IOException
IOException
- if the target stream cannot be written.Copyright © 2020 BouncyCastle.org. All rights reserved.