|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.io.CharacterSet | +--org.enhydra.xml.io.ShiftJisCharacterSet
Class that implements special character handling for Shift_JIS. This detects invalid ranges so that they can be encoded by character entity references.
Required to support i-mode Emoji characters. These are character codes that represent symbols on i-mode phones. The characters codes are invalid Shift-JIS character and must be encoded in HTML pages as numeric character entity references. Special handling is required on formatting to detect these characters.
See http://www.nttdocomo.com/i/tag/emoji/ for details.
Constructor Summary | |
ShiftJisCharacterSet(java.lang.String name,
int charSize,
java.lang.String mimePreferred,
java.lang.String[] aliases)
Constructor |
Method Summary | |
java.lang.String[] |
getAliases()
Get the aliases |
int |
getCharSize()
Get the character size, in bits |
int |
getMaxCharValue()
Get the maximum value for a character |
java.lang.String |
getMIMEPreferred()
Get the MIME preferred name or null if unspecified |
java.lang.String |
getName()
Get the name |
boolean |
isCompatible(CharacterSet otherSet)
Determine if another character set is compatible to this character set. |
boolean |
isValid(char ch)
Determine if a unicode character has a valid mapping to this character set. |
boolean |
sameValidCharRange(CharacterSet otherSet)
Determine if another character set has the same valid range of character codes as this character set. |
java.lang.String |
toString()
Get string representation of object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ShiftJisCharacterSet(java.lang.String name, int charSize, java.lang.String mimePreferred, java.lang.String[] aliases)
Method Detail |
public boolean isValid(char ch)
CharacterSet
WARNING: This is only well implemented for a few character sets on an as-needed basis; the rest just go by the character size.
isValid
in class CharacterSet
CharacterSet.isValid
public boolean sameValidCharRange(CharacterSet otherSet)
CharacterSet
isValid()
return the same value for any arbitrary
unicode character.
WARNING: This is only well implemented for a few character sets on an as-needed basis; the rest just go by the character size.
sameValidCharRange
in class CharacterSet
CharacterSet.sameValidCharRange
public final java.lang.String getName()
public final int getCharSize()
public final int getMaxCharValue()
public final java.lang.String getMIMEPreferred()
public final java.lang.String[] getAliases()
public boolean isCompatible(CharacterSet otherSet)
otherSet.isValid()
return true
,
this.isValid()
will return true
as well.
WARNING: This is only well implemented for a few character sets on an as-needed basis; the rest just go by the character set size.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |