Package net.sf.saxon.serialize.charcode
Class JavaCharacterSet
java.lang.Object
net.sf.saxon.serialize.charcode.JavaCharacterSet
- All Implemented Interfaces:
CharacterSet
This class establishes properties of a character set that is
known to the Java VM but not specifically known to Saxon. It determines whether particular
characters are encodable by calling
CharsetEncoder.canEncode(char), and then caches
this information locally.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the preferred Java name of the character set.final booleaninCharset(int c) Determine if a character is present in the character setstatic JavaCharacterSetmakeCharSet(Charset charset)
-
Field Details
-
map
-
-
Method Details
-
makeCharSet
-
inCharset
public final boolean inCharset(int c) Description copied from interface:CharacterSetDetermine if a character is present in the character set- Specified by:
inCharsetin interfaceCharacterSet- Parameters:
c- the codepoint being tested- Returns:
- true if the codepoint is supported
-
getCanonicalName
Description copied from interface:CharacterSetGet the preferred Java name of the character set. Note that Java in many cases also supports a "historic name".- Specified by:
getCanonicalNamein interfaceCharacterSet- Returns:
- the preferred Java name
-