org.mozilla.jss.asn1

Class CharacterString.Template

public abstract static class CharacterString.Template extends Object implements ASN1Template

Method Summary
ASN1Valuedecode(InputStream istream)
ASN1Valuedecode(Tag implicitTag, InputStream istream)
protected abstract CharacterStringgenerateInstance(char[] chars)
Must be overridden to create an instance of the subclass given a char array.
protected abstract CharConvertergetCharConverter()
Must be overridden to return the correct character converter for the subclass.
protected abstract TaggetTag()
Must be overridden to return the tag for the subclass.
abstract booleantagMatch(Tag tag)
protected abstract StringtypeName()
Must be overridden to provide the name of the subclass, for including into error messages.

Method Detail

decode

public ASN1Value decode(InputStream istream)

decode

public ASN1Value decode(Tag implicitTag, InputStream istream)

generateInstance

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

getCharConverter

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

getTag

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

tagMatch

public abstract boolean tagMatch(Tag tag)

typeName

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