ASN1Templatepublic static class ENUMERATED.Template extends INTEGER.Template implements ASN1Template
| Constructor | Description |
|---|---|
Template() |
| Modifier and Type | Method | Description |
|---|---|---|
ASN1Value |
decode(Tag tag,
java.io.InputStream derStream) |
Decodes an ASN1Value from the InputStream with the given implicit
tag.
|
boolean |
tagMatch(Tag tag) |
Determines whether the given tag will satisfy this template.
|
decodedecodepublic boolean tagMatch(Tag tag)
ASN1TemplatetagMatch in interface ASN1TemplatetagMatch in class INTEGER.Templatetag - Tag.public ASN1Value decode(Tag tag, java.io.InputStream derStream) throws InvalidBERException, java.io.IOException
ASN1Templatedecode in interface ASN1Templatedecode in class INTEGER.Templatetag - Implicit tag.derStream - 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.InvalidBERException - If there is an invalid BER encoding.java.io.IOException - If other error occurred.