Package org.mozilla.jss.asn1
Class TeletexString.Template
- java.lang.Object
-
- org.mozilla.jss.asn1.CharacterString.Template
-
- org.mozilla.jss.asn1.TeletexString.Template
-
- All Implemented Interfaces:
ASN1Template
- Enclosing class:
- TeletexString
public static class TeletexString.Template extends CharacterString.Template implements ASN1Template
-
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CharacterStringgenerateInstance(char[] bytes)Must be overridden to create an instance of the subclass given a char array.protected org.mozilla.jss.asn1.CharConvertergetCharConverter()Must be overridden to return the correct character converter for the subclass.protected TaggetTag()Must be overridden to return the tag for the subclass.booleantagMatch(Tag tag)Determines whether the given tag will satisfy this template.protected java.lang.StringtypeName()Must be overridden to provide the name of the subclass, for including into error messages.-
Methods inherited from class org.mozilla.jss.asn1.CharacterString.Template
decode, decode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mozilla.jss.asn1.ASN1Template
decode, decode
-
-
-
-
Method Detail
-
getTag
protected Tag getTag()
Description copied from class:CharacterString.TemplateMust be overridden to return the tag for the subclass.- Specified by:
getTagin classCharacterString.Template- Returns:
- Tag.
-
tagMatch
public boolean tagMatch(Tag tag)
Description copied from interface:ASN1TemplateDetermines whether the given tag will satisfy this template.- Specified by:
tagMatchin interfaceASN1Template- Specified by:
tagMatchin classCharacterString.Template- Parameters:
tag- Tag.- Returns:
- True if the given tag will satisfy this template.
-
getCharConverter
protected org.mozilla.jss.asn1.CharConverter getCharConverter()
Description copied from class:CharacterString.TemplateMust be overridden to return the correct character converter for the subclass.- Specified by:
getCharConverterin classCharacterString.Template- Returns:
- Character converter.
-
generateInstance
protected CharacterString generateInstance(char[] bytes) throws java.io.CharConversionException
Description copied from class:CharacterString.TemplateMust be overridden to create an instance of the subclass given a char array.- Specified by:
generateInstancein classCharacterString.Template- Parameters:
bytes- Input characters.- Returns:
- Character string.
- Throws:
java.io.CharConversionException- If an error occurred.
-
typeName
protected java.lang.String typeName()
Description copied from class:CharacterString.TemplateMust be overridden to provide the name of the subclass, for including into error messages.- Specified by:
typeNamein classCharacterString.Template- Returns:
- Name of the subclass.
-
-