📄 saxparser.html
字号:
<BR> Parse the content given <A HREF="../../../org/xml/sax/InputSource.html"><CODE>InputSource</CODE></A> as XML using the specified <A HREF="../../../org/xml/sax/HandlerBase.html"><CODE>HandlerBase</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/parsers/SAXParser.html#parse(java.io.InputStream, org.xml.sax.helpers.DefaultHandler)">parse</A></B>(java.io.InputStream is, <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html">DefaultHandler</A> dh)</CODE><BR> Parse the content of the given <CODE>InputStream</CODE> instance as XML using the specified <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html"><CODE>DefaultHandler</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/parsers/SAXParser.html#parse(java.io.InputStream, org.xml.sax.helpers.DefaultHandler, java.lang.String)">parse</A></B>(java.io.InputStream is, <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html">DefaultHandler</A> dh, java.lang.String systemId)</CODE><BR> Parse the content of the given <CODE>InputStream</CODE> instance as XML using the specified <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html"><CODE>DefaultHandler</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/parsers/SAXParser.html#parse(java.io.InputStream, org.xml.sax.HandlerBase)">parse</A></B>(java.io.InputStream is, <A HREF="../../../org/xml/sax/HandlerBase.html">HandlerBase</A> hb)</CODE><BR> Parse the content of the given <CODE>InputStream</CODE> instance as XML using the specified <A HREF="../../../org/xml/sax/HandlerBase.html"><CODE>HandlerBase</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/parsers/SAXParser.html#parse(java.io.InputStream, org.xml.sax.HandlerBase, java.lang.String)">parse</A></B>(java.io.InputStream is, <A HREF="../../../org/xml/sax/HandlerBase.html">HandlerBase</A> hb, java.lang.String systemId)</CODE><BR> Parse the content of the given <CODE>InputStream</CODE> instance as XML using the specified <A HREF="../../../org/xml/sax/HandlerBase.html"><CODE>HandlerBase</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/parsers/SAXParser.html#parse(java.lang.String, org.xml.sax.helpers.DefaultHandler)">parse</A></B>(java.lang.String uri, <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html">DefaultHandler</A> dh)</CODE><BR> Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html"><CODE>DefaultHandler</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/parsers/SAXParser.html#parse(java.lang.String, org.xml.sax.HandlerBase)">parse</A></B>(java.lang.String uri, <A HREF="../../../org/xml/sax/HandlerBase.html">HandlerBase</A> hb)</CODE><BR> Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified <A HREF="../../../org/xml/sax/HandlerBase.html"><CODE>HandlerBase</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/parsers/SAXParser.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A></B>(java.lang.String name, java.lang.Object value)</CODE><BR> Sets the particular property in the underlying implementation of <A HREF="../../../org/xml/sax/XMLReader.html"><CODE>XMLReader</CODE></A>.</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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="SAXParser()"><!-- --></A><H3>SAXParser</H3><PRE>protected <B>SAXParser</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="parse(java.io.InputStream, org.xml.sax.HandlerBase)"><!-- --></A><H3>parse</H3><PRE>public void <B>parse</B>(java.io.InputStream is, <A HREF="../../../org/xml/sax/HandlerBase.html">HandlerBase</A> hb) throws <A HREF="../../../org/xml/sax/SAXException.html">SAXException</A>, java.io.IOException</PRE><DL><DD>Parse the content of the given <CODE>InputStream</CODE> instance as XML using the specified <A HREF="../../../org/xml/sax/HandlerBase.html"><CODE>HandlerBase</CODE></A>. <i> Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0</i><DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - InputStream containing the content to be parsed.<DD><CODE>hb</CODE> - The SAX HandlerBase to use.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If any IO errors occur.<DD><CODE>java.lang.IllegalArgumentException</CODE> - If the given InputStream is null.<DD><CODE><A HREF="../../../org/xml/sax/SAXException.html">SAXException</A></CODE> - If the underlying parser throws a SAXException while parsing.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/DocumentHandler.html"><CODE>DocumentHandler</CODE></A></DL></DD></DL><HR><A NAME="parse(java.io.InputStream, org.xml.sax.HandlerBase, java.lang.String)"><!-- --></A><H3>parse</H3><PRE>public void <B>parse</B>(java.io.InputStream is, <A HREF="../../../org/xml/sax/HandlerBase.html">HandlerBase</A> hb, java.lang.String systemId) throws <A HREF="../../../org/xml/sax/SAXException.html">SAXException</A>, java.io.IOException</PRE><DL><DD>Parse the content of the given <CODE>InputStream</CODE> instance as XML using the specified <A HREF="../../../org/xml/sax/HandlerBase.html"><CODE>HandlerBase</CODE></A>. <i> Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0</i><DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - InputStream containing the content to be parsed.<DD><CODE>hb</CODE> - The SAX HandlerBase to use.<DD><CODE>systemId</CODE> - The systemId which is needed for resolving relative URIs.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If any IO errors occur.<DD><CODE>java.lang.IllegalArgumentException</CODE> - If the given InputStream is null.<DD><CODE><A HREF="../../../org/xml/sax/SAXException.html">SAXException</A></CODE> - If the underlying parser throws a SAXException while parsing.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/DocumentHandler.html"><CODE>version of this method instead.</CODE></A></DL></DD></DL><HR><A NAME="parse(java.io.InputStream, org.xml.sax.helpers.DefaultHandler)"><!-- --></A><H3>parse</H3><PRE>public void <B>parse</B>(java.io.InputStream is, <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html">DefaultHandler</A> dh) throws <A HREF="../../../org/xml/sax/SAXException.html">SAXException</A>, java.io.IOException</PRE><DL><DD>Parse the content of the given <CODE>InputStream</CODE> instance as XML using the specified <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html"><CODE>DefaultHandler</CODE></A>.<DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - InputStream containing the content to be parsed.<DD><CODE>dh</CODE> - The SAX DefaultHandler to use.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If any IO errors occur.<DD><CODE>java.lang.IllegalArgumentException</CODE> - If the given InputStream is null.<DD><CODE><A HREF="../../../org/xml/sax/SAXException.html">SAXException</A></CODE> - If the underlying parser throws a SAXException while parsing.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/DocumentHandler.html"><CODE>DocumentHandler</CODE></A></DL></DD></DL><HR><A NAME="parse(java.io.InputStream, org.xml.sax.helpers.DefaultHandler, java.lang.String)"><!-- --></A><H3>parse</H3><PRE>public void <B>parse</B>(java.io.InputStream is, <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html">DefaultHandler</A> dh, java.lang.String systemId) throws <A HREF="../../../org/xml/sax/SAXException.html">SAXException</A>, java.io.IOException</PRE><DL><DD>Parse the content of the given <CODE>InputStream</CODE> instance as XML using the specified <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html"><CODE>DefaultHandler</CODE></A>.<DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - InputStream containing the content to be parsed.<DD><CODE>dh</CODE> - The SAX DefaultHandler to use.<DD><CODE>systemId</CODE> - The systemId which is needed for resolving relative URIs.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If any IO errors occur.<DD><CODE>java.lang.IllegalArgumentException</CODE> - If the given InputStream is null.<DD><CODE><A HREF="../../../org/xml/sax/SAXException.html">SAXException</A></CODE> - If the underlying parser throws a SAXException while parsing.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/DocumentHandler.html"><CODE>version of this method instead.</CODE></A></DL></DD></DL><HR><A NAME="parse(java.lang.String, org.xml.sax.HandlerBase)"><!-- --></A><H3>parse</H3><PRE>public void <B>parse</B>(java.lang.String uri, <A HREF="../../../org/xml/sax/HandlerBase.html">HandlerBase</A> hb) throws <A HREF="../../../org/xml/sax/SAXException.html">SAXException</A>, java.io.IOException</PRE><DL><DD>Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified <A HREF="../../../org/xml/sax/HandlerBase.html"><CODE>HandlerBase</CODE></A>. <i> Use of the DefaultHandler version of this method is recommended as the <code>HandlerBase</code> class has been deprecated in SAX 2.0</i><DD><DL><DT><B>Parameters:</B><DD><CODE>uri</CODE> - The location of the content to be parsed.<DD><CODE>hb</CODE> - The SAX HandlerBase to use.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If any IO errors occur.<DD><CODE>java.lang.IllegalArgumentException</CODE> - If the uri is null.<DD><CODE><A HREF="../../../org/xml/sax/SAXException.html">SAXException</A></CODE> - If the underlying parser throws a SAXException while parsing.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/DocumentHandler.html"><CODE>DocumentHandler</CODE></A></DL></DD></DL><HR><A NAME="parse(java.lang.String, org.xml.sax.helpers.DefaultHandler)"><!-- --></A><H3>parse</H3><PRE>public void <B>parse</B>(java.lang.String uri, <A HREF="../../../org/xml/sax/helpers/DefaultHandler.html">DefaultHandler</A> dh) throws <A HREF="../../../org/xml/sax/SAXException.html">SAXException</A>,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -