public static class CHOICE.Template extends java.lang.Object implements ASN1Template
CHOICEs| Constructor and Description | 
|---|
CHOICE.Template()
Creates an empty CHOICE template 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addElement(ASN1Template template)
Adds a new sub-template to this CHOICE template with no implicit tag. 
 | 
void | 
addElement(Tag implicitTag,
          ASN1Template template)
Adds a new sub-template to this CHOICE template with an implicit tag. 
 | 
ASN1Value | 
decode(java.io.InputStream istream)
Decodes an ASN1Value from the InputStream without an implicit tag. 
 | 
ASN1Value | 
decode(Tag implicitTag,
      java.io.InputStream istream)
Decodes a CHOICE. 
 | 
ASN1Template | 
elementAt(int index)
Retrieves the element at the specified index. 
 | 
Tag | 
implicitTagAt(int index)
Retrieves the implicit tag of the element at the specified index. 
 | 
void | 
removeAllElements()
Empties this CHOICE template. 
 | 
void | 
removeElementAt(int index)
Removes the element at the specified index. 
 | 
int | 
size()
Returns the number of elements in this CHOICE template. 
 | 
boolean | 
tagMatch(Tag t)
Determines whether the given tag will satisfy this template. 
 | 
public void addElement(ASN1Template template)
public void addElement(Tag implicitTag, ASN1Template template)
public int size()
public ASN1Template elementAt(int index)
public Tag implicitTagAt(int index)
public void removeAllElements()
public void removeElementAt(int index)
public boolean tagMatch(Tag t)
tagMatch in interface ASN1Templatepublic ASN1Value decode(java.io.InputStream istream) throws java.io.IOException, InvalidBERException
ASN1Templatedecode in interface ASN1Templateistream - Must support marking (markSupported() == true). 
      For example, ByteArrayInputStream and BufferedInputStream
      support marking, but FileInputStream does not. If your source
      does not support marking, you can wrap it in a
      BufferedInputStream.java.io.IOExceptionInvalidBERExceptionpublic ASN1Value decode(Tag implicitTag, java.io.InputStream istream) throws java.io.IOException, InvalidBERException
decode in interface ASN1TemplateimplicitTag - This parameter is ignored. A choice
      cannot have an implicit tag.istream - Must support marking (markSupported() == true). 
      For example, ByteArrayInputStream and BufferedInputStream
      support marking, but FileInputStream does not. If your source
      does not support marking, you can wrap it in a
      BufferedInputStream.java.io.IOExceptionInvalidBERException