public class HNSOctetUCSMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
O_LIMIT
Octet limit value.
|
static int |
O_NULL
"Null" octet value.
|
static char |
U_NULL
"Null" UCS value.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int O_NULL
public static final int O_LIMIT
public static final char U_NULL
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)