public static class Encoding.Template extends SEQUENCE.Template
| Constructor and Description |
|---|
Template() |
| Modifier and Type | Method and Description |
|---|---|
ASN1Value |
decode(java.io.InputStream istream)
Decodes a SEQUENCE from its BER encoding.
|
ASN1Value |
decode(Tag implicitTag,
java.io.InputStream istream)
Decodes a SEQUENCE from its BER encoding, where the SEQUENCE itself has
an implicit tag.
|
boolean |
tagMatch(Tag tag)
Determines whether the given tag will satisfy this template.
|
addElement, addElement, addElement, addElement, addOptionalElement, addOptionalElement, defaultAt, implicitTagAt, insertElementAt, insertElementAt, insertElementAt, insertElementAt, insertOptionalElementAt, insertOptionalElementAt, isOptionalAt, removeAllElements, removeElementAt, size, templateAtpublic boolean tagMatch(Tag tag)
ASN1TemplatetagMatch in interface ASN1TemplatetagMatch in class SEQUENCE.Templatepublic ASN1Value decode(java.io.InputStream istream) throws java.io.IOException, InvalidBERException
SEQUENCE.Templatedecode in interface ASN1Templatedecode in class SEQUENCE.Templateistream - 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
SEQUENCE.Templatedecode in interface ASN1Templatedecode in class SEQUENCE.Templateistream - 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