public static class SET.OF_Template extends java.lang.Object implements ASN1Template
Constructor and Description |
---|
SET.OF_Template(ASN1Template type)
Creates an OF_Template with the given type.
|
Modifier and Type | Method and Description |
---|---|
ASN1Value |
decode(java.io.InputStream istream)
Decodes a
SET OF from its BER encoding. |
ASN1Value |
decode(Tag implicitTag,
java.io.InputStream istream)
Decodes a
SET OF with an implicit tag from its BER
encoding. |
boolean |
tagMatch(Tag tag)
Determines whether the given tag will satisfy this template.
|
public SET.OF_Template(ASN1Template type)
MySet ::= SET OF INTEGER;A
MySet
template would be constructed with:
SET.OF_Template mySetTemplate = new SET.OF_Template( new INTEGER.Template() );
public boolean tagMatch(Tag tag)
ASN1Template
tagMatch
in interface ASN1Template
public ASN1Value decode(java.io.InputStream istream) throws java.io.IOException, InvalidBERException
SET OF
from its BER encoding.decode
in interface ASN1Template
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
SET OF
with an implicit tag from its BER
encoding.decode
in interface ASN1Template
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