public abstract class Asn1CharSet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
mABitsPerChar
This variable holds number of bits-per-character (PER aligned).
|
protected int |
mUBitsPerChar
This variable holds number of bits-per-character (PER unaligned).
|
| Modifier | Constructor and Description |
|---|---|
protected |
Asn1CharSet(int nchars)
This constructor sets the number of bits-per-character values
based on the given number of characters in the character set.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getCharAtIndex(int index)
This method will fetch the character from the permitted alphabet
at the given index.
|
abstract int |
getCharIndex(int charValue)
This method will determine the index of the given character within
the permitted alphabet character set.
|
abstract int |
getMaxValue()
This method will determine the maximum value of the given character
within the permitted alphabet character set.
|
int |
getNumBitsPerChar(boolean aligned)
This method will return the number of bits-per-character.
|
abstract boolean |
validate(java.lang.String s)
This method will validate a character string by comparing its contents
to the character set.
|
protected int mABitsPerChar
protected int mUBitsPerChar
protected Asn1CharSet(int nchars)
nchars - Number of characters in the character setpublic abstract int getCharAtIndex(int index)
throws Asn1ConsVioException
index - Index of character within the character setAsn1ConsVioException - Index not within define rangepublic abstract int getCharIndex(int charValue)
throws Asn1ConsVioException
charValue - Character value to search forAsn1ConsVioException - Character not found in setpublic abstract int getMaxValue()
public int getNumBitsPerChar(boolean aligned)
aligned - Boolean value indicating whether number of aligned
(true) or unaligned (false) characters should be
returned.public abstract boolean validate(java.lang.String s)
s - The string to be validated.