ASN1Value
public class CHOICE extends java.lang.Object implements ASN1Value
Modifier and Type | Class | Description |
---|---|---|
static class |
CHOICE.Template |
A Template for decoding ASN.1
CHOICE s |
Constructor | 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 | 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() |
public CHOICE(Tag implicitTag, ASN1Value val)
implicitTag
- Implicit tag.val
- The value.public CHOICE(ASN1Value val)
val
- The value.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