|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.io.CharacterSet
Information and operations associated with a specific character set. A global table of these objects is built by the Encodings class. Instances are immutable, classes can be derived to define override the operations that can't be handled by the default static parameters.
Constructor Summary | |
CharacterSet(String name,
int charSize,
String mimePreferred,
String[] aliases)
Constructor |
Method Summary | |
String[] |
getAliases()
Get the aliases |
int |
getCharSize()
Get the character size, in bits |
int |
getMaxCharValue()
Get the maximum value for a character |
String |
getMIMEPreferred()
Get the MIME preferred name or null if unspecified |
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)
Deprecated. use {qlink #isCompatible} instead |
String |
toString()
Get string representation of object |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public CharacterSet(String name, int charSize, String mimePreferred, String[] aliases)
Method Detail |
public final String getName()
public final int getCharSize()
public final int getMaxCharValue()
public final String getMIMEPreferred()
public final String[] getAliases()
public boolean isValid(char ch)
WARNING: This is only well implemented for a few character sets on an as-needed basis; the rest just go by the character size.
public boolean sameValidCharRange(CharacterSet otherSet)
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.
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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |