|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.HNSOctetUCSMap
public class HNSOctetUCSMap
Defines mappings in both directions between HNS 8-bit character code values (octets) and HamNoSys-UCS characters, most of which are in the UCS private use area. There are factory methods providing access to singleton instances, one which maps all UCS character values, and one which leaves UCS values below 256 unchanged.
Field Summary | |
---|---|
static int |
O_LIMIT
Octet limit value. |
static int |
O_NULL
"Null" octet value. |
static char |
U_NULL
"Null" UCS value. |
Method Summary | |
---|---|
static HNSOctetUCSMap |
getHNSMapOctetAllUCS()
Factory method, returning a the singleton map that includes all UCS HamNoSys character values. |
static HNSOctetUCSMap |
getHNSMapOctetHighUCS()
Factory method, returning the singleton map that includes high UCS HamNoSys character values only. |
static HNSOctetUCSMap |
getHNSMapOctetUCS(boolean DO_ALL_UCS)
Factory method, returning one of two singleton instances of this class, depending on the value of the given flag DO_ALL_UCS :
if this flag is false then only high (>= 256 ) character
values are included in the mapping, but if it is true all values,
including those such as UCS value 44 (hamcomma , for which
the corresponding value in the old 8-bit HNS code is the octet
value 36. |
char |
hns8(char u)
If the given character value is an HNS-4 UCS character, returns (as a character) the corresponding classic HNS octet, otherwise returns the original argument character unchanged. |
int |
octet(char u)
Returns the classic HNS octet value for the given HNS-4 UCS character. |
java.lang.String |
octet(java.lang.String ustr)
Returns (as a charater-string) the sequence of classic HNS octets corresponding to the given sequence of HNS-4 UCS characters. |
java.lang.String |
ucs(byte[] octets)
Returns the string of HNS-4 UCS characters corresponding to the given sequence of classic HNS octet values. |
char |
ucs(int o)
Returns the HNS-4 UCS character for the given classic HNS octet value. |
java.lang.String |
ucs(java.lang.String ostr)
Returns the string of HNS-4 UCS characters corresponding to the given string of classic HNS octet values. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int O_NULL
public static final int O_LIMIT
public static final char U_NULL
Method Detail |
---|
public static final HNSOctetUCSMap getHNSMapOctetHighUCS()
public static final HNSOctetUCSMap getHNSMapOctetAllUCS()
public static final HNSOctetUCSMap getHNSMapOctetUCS(boolean DO_ALL_UCS)
DO_ALL_UCS
:
if this flag is false then only high (>= 256
) character
values are included in the mapping, but if it is true all values,
including those such as UCS value 44 (hamcomma
, for which
the corresponding value in the old 8-bit HNS code is the octet
value 36.
public char ucs(int o)
public java.lang.String ucs(byte[] octets)
public java.lang.String ucs(java.lang.String ostr)
public char hns8(char u)
public int octet(char u)
public java.lang.String octet(java.lang.String ustr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |