Package net.sf.saxon.serialize.charcode
Interface CharacterSet
- All Known Implementing Classes:
ASCIICharacterSet
,ISO88591CharacterSet
,JavaCharacterSet
,UTF16CharacterSet
,UTF8CharacterSet
public interface CharacterSet
This interface defines properties of a character set, built in to the Saxon product.
This is selected in xsl:output using encoding="encoding-name", where
the mapping from an encoding-name to a class is defined in CharacterSetFactory.
-
Method Summary
Modifier and TypeMethodDescriptionGet the preferred Java name of the character set.boolean
inCharset
(int ch) Determine if a character is present in the character set
-
Method Details
-
inCharset
boolean inCharset(int ch) Determine if a character is present in the character set- Parameters:
ch
- the codepoint being tested- Returns:
- true if the codepoint is supported
-
getCanonicalName
String getCanonicalName()Get the preferred Java name of the character set. Note that Java in many cases also supports a "historic name".- Returns:
- the preferred Java name
-