|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.siemens.ct.exi.datatype.charset.AbstractRestrictedCharacterSet
public abstract class AbstractRestrictedCharacterSet
Method Summary | |
---|---|
int |
getCode(int codePoint)
Returns code for given code-point or NOT_FOUND == -1 for
invalid char. |
int |
getCodePoint(int code)
Retrieves the code-point for given code. |
int |
getCodingLength()
Returns the number of bits to encode codes for the set. |
int |
size()
Returns the number of entries for the set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getCodePoint(int code)
RestrictedCharacterSet
getCodePoint
in interface RestrictedCharacterSet
public int getCode(int codePoint)
RestrictedCharacterSet
NOT_FOUND
== -1 for
invalid char.
getCode
in interface RestrictedCharacterSet
codePoint
- character of interest
public int size()
RestrictedCharacterSet
size
in interface RestrictedCharacterSet
public int getCodingLength()
RestrictedCharacterSet
codingLength = ceil( log2(N + 1) ) and N is the number of characters in the restricted character set.
getCodingLength
in interface RestrictedCharacterSet
RestrictedCharacterSet.size()
|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |