org.mozilla.jss.asn1

Class CharacterString.Template

Enclosing Class:
CharacterString
Implemented Interfaces:
ASN1Template

public static abstract class CharacterString.Template
extends java.lang.Object
implements ASN1Template

Method Summary

ASN1Value
decode(InputStream istream)
ASN1Value
decode(Tag implicitTag, InputStream istream)
protected CharacterString
generateInstance(char[] chars)
Must be overridden to create an instance of the subclass given a char array.
protected CharConverter
getCharConverter()
Must be overridden to return the correct character converter for the subclass.
protected Tag
getTag()
Must be overridden to return the tag for the subclass.
boolean
tagMatch(Tag tag)
protected String
typeName()
Must be overridden to provide the name of the subclass, for including into error messages.

Method Details

decode

public ASN1Value decode(InputStream istream)
            throws IOException,
                   InvalidBERException
Specified by:
decode in interface ASN1Template


decode

public ASN1Value decode(Tag implicitTag,
                        InputStream istream)
            throws IOException,
                   InvalidBERException
Specified by:
decode in interface ASN1Template


generateInstance

protected CharacterString generateInstance(char[] chars)
            throws CharConversionException
Must be overridden to create an instance of the subclass given a char array.


getCharConverter

protected CharConverter getCharConverter()
Must be overridden to return the correct character converter for the subclass.


getTag

protected Tag getTag()
Must be overridden to return the tag for the subclass.


tagMatch

public boolean tagMatch(Tag tag)
Specified by:
tagMatch in interface ASN1Template


typeName

protected String typeName()
Must be overridden to provide the name of the subclass, for including into error messages.