|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.ToSafeASCIIMap
public class ToSafeASCIIMap
Defines a mapping of UCS characters to "safe" characters, or short strings of such characters, the safe characters all being in the visible ASCII range. A factory method provides access to the singleton instance.
| Field Summary | |
|---|---|
static int |
A0
Notional base index for the A0 - FF table. |
protected static java.lang.String |
A0_FF_MAP
Path for properties file giving the mapping for characters in the range U+00A0 to U+00FF. |
java.lang.String[] |
A0_TABLE
The table giving the string for each character in the range A0 to FF. |
static int |
A0_TABLE_SIZE
Actual A0 - FF table size. |
static java.lang.String |
DEFAULT_CHAR
The string for the default character. |
static int |
T_LIM
Notional limit index for the A0 - FF table. |
| Method Summary | |
|---|---|
protected static java.lang.String |
getFirstPropsToken(java.util.Properties props,
java.lang.String istr)
Looks up the given string in the given properties set, and returns the first token in the result if possible, or returns null in any case of failure. |
static ToSafeASCIIMap |
getToSafeASCIIMap()
Factory method, returning the singleton map object. |
java.lang.String |
safe(char ch)
Returns the safe ASCII string for the given character. |
java.lang.String |
safe(java.lang.String str)
Returns the safe ASCII version of the given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String A0_FF_MAP
public static final int A0
public static final int T_LIM
public static final int A0_TABLE_SIZE
public static final java.lang.String DEFAULT_CHAR
public final java.lang.String[] A0_TABLE
| Method Detail |
|---|
public static final ToSafeASCIIMap getToSafeASCIIMap()
public java.lang.String safe(char ch)
public java.lang.String safe(java.lang.String str)
protected static java.lang.String getFirstPropsToken(java.util.Properties props,
java.lang.String istr)
null in any case of failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||