Class JavaCharacterSet

  • All Implemented Interfaces:
    CharacterSet

    public class JavaCharacterSet
    extends Object
    implements 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.
    • Method Detail

      • inCharset

        public final boolean inCharset​(int c)
        Description copied from interface: CharacterSet
        Determine if a character is present in the character set
        Specified by:
        inCharset in interface CharacterSet
        Parameters:
        c - the codepoint being tested
        Returns:
        true if the codepoint is supported
      • getCanonicalName

        public String getCanonicalName()
        Description copied from interface: CharacterSet
        Get the preferred Java name of the character set. Note that Java in many cases also supports a "historic name".
        Specified by:
        getCanonicalName in interface CharacterSet
        Returns:
        the preferred Java name