org.enhydra.xml.io
Class ShiftJisCharacterSet
java.lang.Object
|
+--org.enhydra.xml.io.CharacterSet
|
+--org.enhydra.xml.io.ShiftJisCharacterSet
- class ShiftJisCharacterSet
- extends CharacterSet
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.
Method Summary |
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. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ShiftJisCharacterSet
public ShiftJisCharacterSet(String name,
int charSize,
String mimePreferred,
String[] aliases)
- Constructor
isValid
public boolean isValid(char ch)
- Description copied from class:
CharacterSet
- Determine if a unicode character has a valid mapping to this
character set.
WARNING: This is only well implemented for a few character sets
on an as-needed basis; the rest just go by the character size.
- Overrides:
isValid
in class CharacterSet
- See Also:
CharacterSet.isValid(char)
sameValidCharRange
public boolean sameValidCharRange(CharacterSet otherSet)
- Description copied from class:
CharacterSet
- Determine if another character set has the same valid range of
character codes as this character set. That is, will
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.
- Overrides:
sameValidCharRange
in class CharacterSet
- See Also:
CharacterSet.sameValidCharRange(org.enhydra.xml.io.CharacterSet)
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.