| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:57 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class XMLChar
|
| </TITLE>
|
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
| </HEAD>
|
| <BODY BGCOLOR="white">
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
| <TR ALIGN="center" VALIGN="top">
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XMLChar.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| </TR>
|
| </TABLE>
|
| </TD>
|
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| </EM>
|
| </TD>
|
| </TR>
|
|
|
| <TR>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../../org/apache/xml/serializer/utils/XML11Char.html"><B>PREV CLASS</B></A>
|
| NEXT CLASS</FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="XMLChar.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| <!-- ======== START OF CLASS DATA ======== -->
|
| <H2>
|
| <FONT SIZE="-1">
|
| org.apache.xml.serializer.utils</FONT>
|
| <BR>
|
| Class XMLChar</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<B>org.apache.xml.serializer.utils.XMLChar</B>
|
| </PRE>
|
| <HR>
|
| <DL>
|
| <DT>public class <B>XMLChar</B><DT>extends java.lang.Object</DL>
|
|
|
| <P>
|
| THIS IS A COPY OF THE XERCES-2J CLASS org.apache.xerces.utls.XMLChar |
| |
| This class defines the basic XML character properties. The data |
| in this class can be used to verify that a character is a valid |
| XML character or if the character is a space, name start, or name |
| character. |
| <p> |
| A series of convenience methods are supplied to ease the burden |
| of the developer. Because inlining the checks can improve per |
| character performance, the tables of character properties are |
| public. Using the character as an index into the <code>CHARS</code> |
| array and applying the appropriate mask flag (e.g. |
| <code>MASK_VALID</code>), yields the same results as calling the |
| convenience methods. There is one exception: check the comments |
| for the <code>isValid</code> method for details.
|
| <P>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Field Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#MASK_CONTENT">MASK_CONTENT</A></B></CODE>
|
|
|
| <BR>
|
| Content character mask.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#MASK_NAME">MASK_NAME</A></B></CODE>
|
|
|
| <BR>
|
| Name character mask.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#MASK_NAME_START">MASK_NAME_START</A></B></CODE>
|
|
|
| <BR>
|
| Name start character mask.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#MASK_NCNAME">MASK_NCNAME</A></B></CODE>
|
|
|
| <BR>
|
| NCName character mask.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#MASK_NCNAME_START">MASK_NCNAME_START</A></B></CODE>
|
|
|
| <BR>
|
| NCName start character mask.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#MASK_PUBID">MASK_PUBID</A></B></CODE>
|
|
|
| <BR>
|
| Pubid character mask.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#MASK_SPACE">MASK_SPACE</A></B></CODE>
|
|
|
| <BR>
|
| Space character mask.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#MASK_VALID">MASK_VALID</A></B></CODE>
|
|
|
| <BR>
|
| Valid character mask.</TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Constructor Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#XMLChar()">XMLChar</A></B>()</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- ========== METHOD SUMMARY =========== -->
|
|
|
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Method Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static char</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#highSurrogate(int)">highSurrogate</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns the high surrogate of a supplemental character</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isContent(int)">isContent</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character can be considered content.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isHighSurrogate(int)">isHighSurrogate</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns whether the given character is a high surrogate</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isInvalid(int)">isInvalid</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is invalid.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isLowSurrogate(int)">isLowSurrogate</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns whether the given character is a low surrogate</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isMarkup(int)">isMarkup</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character can be considered markup.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isName(int)">isName</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is a valid name |
| character as defined by production [4] in the XML 1.0 |
| specification.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isNameStart(int)">isNameStart</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is a valid name start |
| character as defined by production [5] in the XML 1.0 |
| specification.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isNCName(int)">isNCName</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is a valid NCName |
| character as defined by production [5] in Namespaces in XML |
| recommendation.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isNCNameStart(int)">isNCNameStart</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is a valid NCName start |
| character as defined by production [4] in Namespaces in XML |
| recommendation.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isPubid(int)">isPubid</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is a valid Pubid |
| character as defined by production [13] in the XML 1.0 |
| specification.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isSpace(int)">isSpace</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is a space character |
| as defined by production [3] in the XML 1.0 specification.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isSupplemental(int)">isSupplemental</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is a supplemental character.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isValid(int)">isValid</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns true if the specified character is valid.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isValidIANAEncoding(java.lang.String)">isValidIANAEncoding</A></B>(java.lang.String ianaEncoding)</CODE>
|
|
|
| <BR>
|
| Returns true if the encoding name is a valid IANA encoding.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isValidJavaEncoding(java.lang.String)">isValidJavaEncoding</A></B>(java.lang.String javaEncoding)</CODE>
|
|
|
| <BR>
|
| Returns true if the encoding name is a valid Java encoding.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isValidName(java.lang.String)">isValidName</A></B>(java.lang.String name)</CODE>
|
|
|
| <BR>
|
| Check to see if a string is a valid Name according to [5] |
| in the XML 1.0 Recommendation</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isValidNCName(java.lang.String)">isValidNCName</A></B>(java.lang.String ncName)</CODE>
|
|
|
| <BR>
|
| Check to see if a string is a valid NCName according to [4] |
| from the XML Namespaces 1.0 Recommendation</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#isValidNmtoken(java.lang.String)">isValidNmtoken</A></B>(java.lang.String nmtoken)</CODE>
|
|
|
| <BR>
|
| Check to see if a string is a valid Nmtoken according to [7] |
| in the XML 1.0 Recommendation</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static char</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#lowSurrogate(int)">lowSurrogate</A></B>(int c)</CODE>
|
|
|
| <BR>
|
| Returns the low surrogate of a supplemental character</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/serializer/utils/XMLChar.html#supplemental(char, char)">supplemental</A></B>(char h, |
| char l)</CODE>
|
|
|
| <BR>
|
| Returns true the supplemental character corresponding to the given |
| surrogates.</TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE>equals,
|
| getClass,
|
| hashCode,
|
| notify,
|
| notifyAll,
|
| toString,
|
| wait,
|
| wait,
|
| wait</CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Field Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="MASK_VALID"><!-- --></A><H3>
|
| MASK_VALID</H3>
|
| <PRE>
|
| public static final int <B>MASK_VALID</B></PRE>
|
| <DL>
|
| <DD>Valid character mask.</DL>
|
| <HR>
|
|
|
| <A NAME="MASK_SPACE"><!-- --></A><H3>
|
| MASK_SPACE</H3>
|
| <PRE>
|
| public static final int <B>MASK_SPACE</B></PRE>
|
| <DL>
|
| <DD>Space character mask.</DL>
|
| <HR>
|
|
|
| <A NAME="MASK_NAME_START"><!-- --></A><H3>
|
| MASK_NAME_START</H3>
|
| <PRE>
|
| public static final int <B>MASK_NAME_START</B></PRE>
|
| <DL>
|
| <DD>Name start character mask.</DL>
|
| <HR>
|
|
|
| <A NAME="MASK_NAME"><!-- --></A><H3>
|
| MASK_NAME</H3>
|
| <PRE>
|
| public static final int <B>MASK_NAME</B></PRE>
|
| <DL>
|
| <DD>Name character mask.</DL>
|
| <HR>
|
|
|
| <A NAME="MASK_PUBID"><!-- --></A><H3>
|
| MASK_PUBID</H3>
|
| <PRE>
|
| public static final int <B>MASK_PUBID</B></PRE>
|
| <DL>
|
| <DD>Pubid character mask.</DL>
|
| <HR>
|
|
|
| <A NAME="MASK_CONTENT"><!-- --></A><H3>
|
| MASK_CONTENT</H3>
|
| <PRE>
|
| public static final int <B>MASK_CONTENT</B></PRE>
|
| <DL>
|
| <DD>Content character mask. Special characters are those that can |
| be considered the start of markup, such as '<' and '&'. |
| The various newline characters are considered special as well. |
| All other valid XML characters can be considered content. |
| <p> |
| This is an optimization for the inner loop of character scanning.</DL>
|
| <HR>
|
|
|
| <A NAME="MASK_NCNAME_START"><!-- --></A><H3>
|
| MASK_NCNAME_START</H3>
|
| <PRE>
|
| public static final int <B>MASK_NCNAME_START</B></PRE>
|
| <DL>
|
| <DD>NCName start character mask.</DL>
|
| <HR>
|
|
|
| <A NAME="MASK_NCNAME"><!-- --></A><H3>
|
| MASK_NCNAME</H3>
|
| <PRE>
|
| public static final int <B>MASK_NCNAME</B></PRE>
|
| <DL>
|
| <DD>NCName character mask.</DL>
|
|
|
| <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Constructor Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="XMLChar()"><!-- --></A><H3>
|
| XMLChar</H3>
|
| <PRE>
|
| public <B>XMLChar</B>()</PRE>
|
| <DL>
|
| </DL>
|
|
|
| <!-- ============ METHOD DETAIL ========== -->
|
|
|
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Method Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="isSupplemental(int)"><!-- --></A><H3>
|
| isSupplemental</H3>
|
| <PRE>
|
| public static boolean <B>isSupplemental</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is a supplemental character.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="supplemental(char, char)"><!-- --></A><H3>
|
| supplemental</H3>
|
| <PRE>
|
| public static int <B>supplemental</B>(char h, |
| char l)</PRE>
|
| <DL>
|
| <DD>Returns true the supplemental character corresponding to the given |
| surrogates.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>h</CODE> - The high surrogate.<DD><CODE>l</CODE> - The low surrogate.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="highSurrogate(int)"><!-- --></A><H3>
|
| highSurrogate</H3>
|
| <PRE>
|
| public static char <B>highSurrogate</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns the high surrogate of a supplemental character<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The supplemental character to "split".</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="lowSurrogate(int)"><!-- --></A><H3>
|
| lowSurrogate</H3>
|
| <PRE>
|
| public static char <B>lowSurrogate</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns the low surrogate of a supplemental character<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The supplemental character to "split".</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isHighSurrogate(int)"><!-- --></A><H3>
|
| isHighSurrogate</H3>
|
| <PRE>
|
| public static boolean <B>isHighSurrogate</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns whether the given character is a high surrogate<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isLowSurrogate(int)"><!-- --></A><H3>
|
| isLowSurrogate</H3>
|
| <PRE>
|
| public static boolean <B>isLowSurrogate</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns whether the given character is a low surrogate<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isValid(int)"><!-- --></A><H3>
|
| isValid</H3>
|
| <PRE>
|
| public static boolean <B>isValid</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is valid. This method |
| also checks the surrogate character range from 0x10000 to 0x10FFFF. |
| <p> |
| If the program chooses to apply the mask directly to the |
| <code>CHARS</code> array, then they are responsible for checking |
| the surrogate character range.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isInvalid(int)"><!-- --></A><H3>
|
| isInvalid</H3>
|
| <PRE>
|
| public static boolean <B>isInvalid</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is invalid.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isContent(int)"><!-- --></A><H3>
|
| isContent</H3>
|
| <PRE>
|
| public static boolean <B>isContent</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character can be considered content.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isMarkup(int)"><!-- --></A><H3>
|
| isMarkup</H3>
|
| <PRE>
|
| public static boolean <B>isMarkup</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character can be considered markup. |
| Markup characters include '<', '&', and '%'.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isSpace(int)"><!-- --></A><H3>
|
| isSpace</H3>
|
| <PRE>
|
| public static boolean <B>isSpace</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is a space character |
| as defined by production [3] in the XML 1.0 specification.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isNameStart(int)"><!-- --></A><H3>
|
| isNameStart</H3>
|
| <PRE>
|
| public static boolean <B>isNameStart</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is a valid name start |
| character as defined by production [5] in the XML 1.0 |
| specification.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isName(int)"><!-- --></A><H3>
|
| isName</H3>
|
| <PRE>
|
| public static boolean <B>isName</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is a valid name |
| character as defined by production [4] in the XML 1.0 |
| specification.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isNCNameStart(int)"><!-- --></A><H3>
|
| isNCNameStart</H3>
|
| <PRE>
|
| public static boolean <B>isNCNameStart</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is a valid NCName start |
| character as defined by production [4] in Namespaces in XML |
| recommendation.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isNCName(int)"><!-- --></A><H3>
|
| isNCName</H3>
|
| <PRE>
|
| public static boolean <B>isNCName</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is a valid NCName |
| character as defined by production [5] in Namespaces in XML |
| recommendation.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isPubid(int)"><!-- --></A><H3>
|
| isPubid</H3>
|
| <PRE>
|
| public static boolean <B>isPubid</B>(int c)</PRE>
|
| <DL>
|
| <DD>Returns true if the specified character is a valid Pubid |
| character as defined by production [13] in the XML 1.0 |
| specification.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to check.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isValidName(java.lang.String)"><!-- --></A><H3>
|
| isValidName</H3>
|
| <PRE>
|
| public static boolean <B>isValidName</B>(java.lang.String name)</PRE>
|
| <DL>
|
| <DD>Check to see if a string is a valid Name according to [5] |
| in the XML 1.0 Recommendation<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - string to check<DT><B>Returns:</B><DD>true if name is a valid Name</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isValidNCName(java.lang.String)"><!-- --></A><H3>
|
| isValidNCName</H3>
|
| <PRE>
|
| public static boolean <B>isValidNCName</B>(java.lang.String ncName)</PRE>
|
| <DL>
|
| <DD>Check to see if a string is a valid NCName according to [4] |
| from the XML Namespaces 1.0 Recommendation<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>ncName</CODE> - string to check<DT><B>Returns:</B><DD>true if name is a valid NCName</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isValidNmtoken(java.lang.String)"><!-- --></A><H3>
|
| isValidNmtoken</H3>
|
| <PRE>
|
| public static boolean <B>isValidNmtoken</B>(java.lang.String nmtoken)</PRE>
|
| <DL>
|
| <DD>Check to see if a string is a valid Nmtoken according to [7] |
| in the XML 1.0 Recommendation<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>nmtoken</CODE> - string to check<DT><B>Returns:</B><DD>true if nmtoken is a valid Nmtoken</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isValidIANAEncoding(java.lang.String)"><!-- --></A><H3>
|
| isValidIANAEncoding</H3>
|
| <PRE>
|
| public static boolean <B>isValidIANAEncoding</B>(java.lang.String ianaEncoding)</PRE>
|
| <DL>
|
| <DD>Returns true if the encoding name is a valid IANA encoding. |
| This method does not verify that there is a decoder available |
| for this encoding, only that the characters are valid for an |
| IANA encoding name.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>ianaEncoding</CODE> - The IANA encoding name.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isValidJavaEncoding(java.lang.String)"><!-- --></A><H3>
|
| isValidJavaEncoding</H3>
|
| <PRE>
|
| public static boolean <B>isValidJavaEncoding</B>(java.lang.String javaEncoding)</PRE>
|
| <DL>
|
| <DD>Returns true if the encoding name is a valid Java encoding. |
| This method does not verify that there is a decoder available |
| for this encoding, only that the characters are valid for an |
| Java encoding name.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>javaEncoding</CODE> - The Java encoding name.</DL>
|
| </DD>
|
| </DL>
|
| <!-- ========= END OF CLASS DATA ========= -->
|
| <HR>
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_bottom"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
| <TR ALIGN="center" VALIGN="top">
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XMLChar.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| </TR>
|
| </TABLE>
|
| </TD>
|
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| </EM>
|
| </TD>
|
| </TR>
|
|
|
| <TR>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../../org/apache/xml/serializer/utils/XML11Char.html"><B>PREV CLASS</B></A>
|
| NEXT CLASS</FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="XMLChar.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|