public static class Encoding.Template extends SEQUENCE.Template
Constructor and Description |
---|
Encoding.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, templateAt
public boolean tagMatch(Tag tag)
ASN1Template
tagMatch
in interface ASN1Template
tagMatch
in class SEQUENCE.Template
public ASN1Value decode(java.io.InputStream istream) throws java.io.IOException, InvalidBERException
SEQUENCE.Template
decode
in interface ASN1Template
decode
in class SEQUENCE.Template
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.IOException
InvalidBERException
public ASN1Value decode(Tag implicitTag, java.io.InputStream istream) throws java.io.IOException, InvalidBERException
SEQUENCE.Template
decode
in interface ASN1Template
decode
in class SEQUENCE.Template
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.IOException
InvalidBERException