public class CHOICE extends java.lang.Object implements ASN1Value
Modifier and Type | Class and Description |
---|---|
static class |
CHOICE.Template
A Template for decoding ASN.1
CHOICE s |
Constructor and Description |
---|
CHOICE(ASN1Value val)
Create a CHOICE whose chosen element has no implicit tag.
|
CHOICE(Tag implicitTag,
ASN1Value val)
Create a CHOICE whose chosen element has an implicit tag.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream ostream)
Encodes this CHOICE.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Encodes this CHOICE.
|
Tag |
getTag()
Returns the tag that the chosen element is encoded with, which is
either the underlying tag of the element or an implicit tag.
|
static CHOICE.Template |
getTemplate() |
ASN1Value |
getValue()
Returns the chosen value.
|
public CHOICE(Tag implicitTag, ASN1Value val)
public CHOICE(ASN1Value val)
public Tag getTag()
public ASN1Value getValue()
public static CHOICE.Template getTemplate()
public void encode(java.io.OutputStream ostream) throws java.io.IOException
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException