public static boolean isXMLCharacter(final int c) {
    if (c >= CHARCNT) {
      return c <= 0x10FFFF;
    }
    return (byte)0 != (byte)(CHARFLAGS[c] & MASKXMLCHARACTER);
  }
public static boolean isXMLCharacter(final int c)