saxparserfactory.html
来自「j2ee api,很好的api。我这现在有」· HTML 代码 · 共 516 行 · 第 1/2 页
HTML
516 行
<!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="newInstance()"><!-- --></A><H3>newInstance</H3><PRE>public static <A HREF="../../../javax/xml/parsers/SAXParserFactory.html" title="class in javax.xml.parsers">SAXParserFactory</A> <B>newInstance</B>() throws <A HREF="../../../javax/xml/parsers/FactoryConfigurationError.html" title="class in javax.xml.parsers">FactoryConfigurationError</A></PRE><DL><DD>Obtain a new instance of a <code>SAXParserFactory</code>. This static method creates a new factory instance This method uses the following ordered lookup procedure to determine the <code>SAXParserFactory</code> implementation class to load: <ul> <li> Use the <code>javax.xml.parsers.SAXParserFactory</code> system property. </li> <li> Use the properties file "lib/jaxp.properties" in the JRE directory. This configuration file is in standard <code>java.util.Properties </code> format and contains the fully qualified name of the implementation class with the key being the system property defined above. </li> <li> Use the Services API (as detailed in the JAR specification), if available, to determine the classname. The Services API will look for a classname in the file <code>META-INF/services/javax.xml.parsers.SAXParserFactory</code> in jars available to the runtime. </li> <li> Platform default <code>SAXParserFactory</code> instance. </li> </ul> Once an application has obtained a reference to a <code>SAXParserFactory</code> it can use the factory to configure and obtain parser instances.<P><DD><DL><DT><B>Returns:</B><DD>A new instance of a SAXParserFactory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/parsers/FactoryConfigurationError.html" title="class in javax.xml.parsers">FactoryConfigurationError</A></CODE> - if the implementation is not available or cannot be instantiated.</DL></DD></DL><HR><A NAME="newSAXParser()"><!-- --></A><H3>newSAXParser</H3><PRE>public abstract <A HREF="../../../javax/xml/parsers/SAXParser.html" title="class in javax.xml.parsers">SAXParser</A> <B>newSAXParser</B>() throws <A HREF="../../../javax/xml/parsers/ParserConfigurationException.html" title="class in javax.xml.parsers">ParserConfigurationException</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></PRE><DL><DD>Creates a new instance of a SAXParser using the currently configured factory parameters.<P><DD><DL><DT><B>Returns:</B><DD>A new instance of a SAXParser.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/parsers/ParserConfigurationException.html" title="class in javax.xml.parsers">ParserConfigurationException</A></CODE> - if a parser cannot be created which satisfies the requested configuration.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL></DD></DL><HR><A NAME="setNamespaceAware(boolean)"><!-- --></A><H3>setNamespaceAware</H3><PRE>public void <B>setNamespaceAware</B>(boolean awareness)</PRE><DL><DD>Specifies that the parser produced by this code will provide support for XML namespaces. By default the value of this is set to <code>false</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>awareness</CODE> - true if the parser produced by this code will provide support for XML namespaces; false otherwise.</DL></DD></DL><HR><A NAME="setValidating(boolean)"><!-- --></A><H3>setValidating</H3><PRE>public void <B>setValidating</B>(boolean validating)</PRE><DL><DD>Specifies that the parser produced by this code will validate documents as they are parsed. By default the value of this is set to <code>false</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>validating</CODE> - true if the parser produced by this code will validate documents as they are parsed; false otherwise.</DL></DD></DL><HR><A NAME="isNamespaceAware()"><!-- --></A><H3>isNamespaceAware</H3><PRE>public boolean <B>isNamespaceAware</B>()</PRE><DL><DD>Indicates whether or not the factory is configured to produce parsers which are namespace aware.<P><DD><DL><DT><B>Returns:</B><DD>true if the factory is configured to produce parsers which are namespace aware; false otherwise.</DL></DD></DL><HR><A NAME="isValidating()"><!-- --></A><H3>isValidating</H3><PRE>public boolean <B>isValidating</B>()</PRE><DL><DD>Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse.<P><DD><DL><DT><B>Returns:</B><DD>true if the factory is configured to produce parsers which validate the XML content during parse; false otherwise.</DL></DD></DL><HR><A NAME="setFeature(java.lang.String, boolean)"><!-- --></A><H3>setFeature</H3><PRE>public abstract void <B>setFeature</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, boolean value) throws <A HREF="../../../javax/xml/parsers/ParserConfigurationException.html" title="class in javax.xml.parsers">ParserConfigurationException</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXNotRecognizedException.html" title="class or interface in org.xml.sax">SAXNotRecognizedException</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXNotSupportedException.html" title="class or interface in org.xml.sax">SAXNotSupportedException</A></PRE><DL><DD>Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader. A list of the core features and properties can be found at <a href="http://www.megginson.com/SAX/Java/features.html"> http://www.megginson.com/SAX/Java/features.html </a><P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the feature to be set.<DD><CODE>value</CODE> - The value of the feature to be set.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXNotRecognizedException.html" title="class or interface in org.xml.sax">SAXNotRecognizedException</A></CODE> - When the underlying XMLReader does not recognize the property name.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXNotSupportedException.html" title="class or interface in org.xml.sax">SAXNotSupportedException</A></CODE> - When the underlying XMLReader recognizes the property name but doesn't support the property.<DD><CODE><A HREF="../../../javax/xml/parsers/ParserConfigurationException.html" title="class in javax.xml.parsers">ParserConfigurationException</A></CODE><DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/XMLReader.html#setFeature(java.lang.String, boolean)" title="class or interface in org.xml.sax"><CODE>XMLReader.setFeature(java.lang.String, boolean)</CODE></A></DL></DD></DL><HR><A NAME="getFeature(java.lang.String)"><!-- --></A><H3>getFeature</H3><PRE>public abstract boolean <B>getFeature</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name) throws <A HREF="../../../javax/xml/parsers/ParserConfigurationException.html" title="class in javax.xml.parsers">ParserConfigurationException</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXNotRecognizedException.html" title="class or interface in org.xml.sax">SAXNotRecognizedException</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXNotSupportedException.html" title="class or interface in org.xml.sax">SAXNotSupportedException</A></PRE><DL><DD>Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the property to be retrieved.<DT><B>Returns:</B><DD>Value of the requested property.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXNotRecognizedException.html" title="class or interface in org.xml.sax">SAXNotRecognizedException</A></CODE> - When the underlying XMLReader does not recognize the property name.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXNotSupportedException.html" title="class or interface in org.xml.sax">SAXNotSupportedException</A></CODE> - When the underlying XMLReader recognizes the property name but doesn't support the property.<DD><CODE><A HREF="../../../javax/xml/parsers/ParserConfigurationException.html" title="class in javax.xml.parsers">ParserConfigurationException</A></CODE><DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/XMLReader.html#getProperty(java.lang.String)" title="class or interface in org.xml.sax"><CODE>XMLReader.getProperty(java.lang.String)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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="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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/xml/parsers/SAXParser.html" title="class in javax.xml.parsers"><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="SAXParserFactory.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?