| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:13:00 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class XMLReaderAdapter
|
| </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/XMLReaderAdapter.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/xml/sax/helpers/XMLFilterImpl.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/xml/sax/helpers/XMLReaderFactory.html"><B>NEXT CLASS</B></A></FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="XMLReaderAdapter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | 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>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| <!-- ======== START OF CLASS DATA ======== -->
|
| <H2>
|
| <FONT SIZE="-1">
|
| org.xml.sax.helpers</FONT>
|
| <BR>
|
| Class XMLReaderAdapter</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<B>org.xml.sax.helpers.XMLReaderAdapter</B>
|
| </PRE>
|
| <HR>
|
| <DL>
|
| <DT>public class <B>XMLReaderAdapter</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../org/xml/sax/Parser.html">Parser</A>, <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A></DL>
|
|
|
| <P>
|
| Adapt a SAX2 XMLReader as a SAX1 Parser. |
| |
| <blockquote> |
| <em>This module, both source code and documentation, is in the |
| Public Domain, and comes with <strong>NO WARRANTY</strong>.</em> |
| See <a href='http://www.saxproject.org'>http://www.saxproject.org</a> |
| for further information. |
| </blockquote> |
| |
| <p>This class wraps a SAX2 <A HREF="../../../../org/xml/sax/XMLReader.html">XMLReader</A> |
| and makes it act as a SAX1 <A HREF="../../../../org/xml/sax/Parser.html">Parser</A>. The XMLReader |
| must support a true value for the |
| http://xml.org/sax/features/namespace-prefixes property or parsing will fail |
| with a <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A>; if the XMLReader |
| supports a false value for the http://xml.org/sax/features/namespaces |
| property, that will also be used to improve efficiency.</p>
|
| <P>
|
| <DL>
|
| <DT><B>Since: </B><DD>SAX 2.0</DD>
|
| <DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Parser.html"><CODE>Parser</CODE></A>,
|
| <A HREF="../../../../org/xml/sax/XMLReader.html"><CODE>XMLReader</CODE></A></DL>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
|
| <!-- ======== 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/xml/sax/helpers/XMLReaderAdapter.html#XMLReaderAdapter()">XMLReaderAdapter</A></B>()</CODE>
|
|
|
| <BR>
|
| Create a new adapter.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#XMLReaderAdapter(org.xml.sax.XMLReader)">XMLReaderAdapter</A></B>(<A HREF="../../../../org/xml/sax/XMLReader.html">XMLReader</A> xmlReader)</CODE>
|
|
|
| <BR>
|
| Create a new adapter.</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> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#characters(char[], int, int)">characters</A></B>(char[] ch, |
| int start, |
| int length)</CODE>
|
|
|
| <BR>
|
| Adapt a SAX2 characters event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#endDocument()">endDocument</A></B>()</CODE>
|
|
|
| <BR>
|
| End document event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#endElement(java.lang.String, java.lang.String, java.lang.String)">endElement</A></B>(java.lang.String uri, |
| java.lang.String localName, |
| java.lang.String qName)</CODE>
|
|
|
| <BR>
|
| Adapt a SAX2 end element event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#endPrefixMapping(java.lang.String)">endPrefixMapping</A></B>(java.lang.String prefix)</CODE>
|
|
|
| <BR>
|
| Adapt a SAX2 end prefix mapping event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#ignorableWhitespace(char[], int, int)">ignorableWhitespace</A></B>(char[] ch, |
| int start, |
| int length)</CODE>
|
|
|
| <BR>
|
| Adapt a SAX2 ignorable whitespace event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#parse(org.xml.sax.InputSource)">parse</A></B>(<A HREF="../../../../org/xml/sax/InputSource.html">InputSource</A> input)</CODE>
|
|
|
| <BR>
|
| Parse the document.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#parse(java.lang.String)">parse</A></B>(java.lang.String systemId)</CODE>
|
|
|
| <BR>
|
| Parse the document.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#processingInstruction(java.lang.String, java.lang.String)">processingInstruction</A></B>(java.lang.String target, |
| java.lang.String data)</CODE>
|
|
|
| <BR>
|
| Adapt a SAX2 processing instruction event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#setDocumentHandler(org.xml.sax.DocumentHandler)">setDocumentHandler</A></B>(<A HREF="../../../../org/xml/sax/DocumentHandler.html">DocumentHandler</A> handler)</CODE>
|
|
|
| <BR>
|
| Register the SAX1 document event handler.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#setDocumentLocator(org.xml.sax.Locator)">setDocumentLocator</A></B>(<A HREF="../../../../org/xml/sax/Locator.html">Locator</A> locator)</CODE>
|
|
|
| <BR>
|
| Set a document locator.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#setDTDHandler(org.xml.sax.DTDHandler)">setDTDHandler</A></B>(<A HREF="../../../../org/xml/sax/DTDHandler.html">DTDHandler</A> handler)</CODE>
|
|
|
| <BR>
|
| Register the DTD event handler.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#setEntityResolver(org.xml.sax.EntityResolver)">setEntityResolver</A></B>(<A HREF="../../../../org/xml/sax/EntityResolver.html">EntityResolver</A> resolver)</CODE>
|
|
|
| <BR>
|
| Register the entity resolver.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#setErrorHandler(org.xml.sax.ErrorHandler)">setErrorHandler</A></B>(<A HREF="../../../../org/xml/sax/ErrorHandler.html">ErrorHandler</A> handler)</CODE>
|
|
|
| <BR>
|
| Register the error event handler.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#setLocale(java.util.Locale)">setLocale</A></B>(java.util.Locale locale)</CODE>
|
|
|
| <BR>
|
| Set the locale for error reporting.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#skippedEntity(java.lang.String)">skippedEntity</A></B>(java.lang.String name)</CODE>
|
|
|
| <BR>
|
| Adapt a SAX2 skipped entity event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#startDocument()">startDocument</A></B>()</CODE>
|
|
|
| <BR>
|
| Start document event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)">startElement</A></B>(java.lang.String uri, |
| java.lang.String localName, |
| java.lang.String qName, |
| <A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A> atts)</CODE>
|
|
|
| <BR>
|
| Adapt a SAX2 start element event.</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="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#startPrefixMapping(java.lang.String, java.lang.String)">startPrefixMapping</A></B>(java.lang.String prefix, |
| java.lang.String uri)</CODE>
|
|
|
| <BR>
|
| Adapt a SAX2 start prefix mapping event.</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 =========== -->
|
|
|
|
|
| <!-- ========= 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="XMLReaderAdapter()"><!-- --></A><H3>
|
| XMLReaderAdapter</H3>
|
| <PRE>
|
| public <B>XMLReaderAdapter</B>() |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Create a new adapter. |
| |
| <p>Use the "org.xml.sax.driver" property to locate the SAX2 |
| driver to embed.</p><DD><DL>
|
| <DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - If the embedded driver |
| cannot be instantiated or if the |
| org.xml.sax.driver property is not specified.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="XMLReaderAdapter(org.xml.sax.XMLReader)"><!-- --></A><H3>
|
| XMLReaderAdapter</H3>
|
| <PRE>
|
| public <B>XMLReaderAdapter</B>(<A HREF="../../../../org/xml/sax/XMLReader.html">XMLReader</A> xmlReader)</PRE>
|
| <DL>
|
| <DD>Create a new adapter. |
| |
| <p>Create a new adapter, wrapped around a SAX2 XMLReader. |
| The adapter will make the XMLReader act like a SAX1 |
| Parser.</p><DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>xmlReader</CODE> - The SAX2 XMLReader to wrap.<DT><B>Throws:</B><DD>java.lang.NullPointerException - If the argument is null.</DL>
|
| </DD>
|
| </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="setLocale(java.util.Locale)"><!-- --></A><H3>
|
| setLocale</H3>
|
| <PRE>
|
| public void <B>setLocale</B>(java.util.Locale locale) |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Set the locale for error reporting. |
| |
| <p>This is not supported in SAX2, and will always throw |
| an exception.</p><DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setLocale(java.util.Locale)">setLocale</A> in interface <A HREF="../../../../org/xml/sax/Parser.html">Parser</A><DT><B>Parameters:</B><DD><CODE>locale</CODE> - the locale for error reporting.<DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - Thrown unless overridden.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setLocale(java.util.Locale)"><CODE>Parser.setLocale(java.util.Locale)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setEntityResolver(org.xml.sax.EntityResolver)"><!-- --></A><H3>
|
| setEntityResolver</H3>
|
| <PRE>
|
| public void <B>setEntityResolver</B>(<A HREF="../../../../org/xml/sax/EntityResolver.html">EntityResolver</A> resolver)</PRE>
|
| <DL>
|
| <DD>Register the entity resolver.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setEntityResolver(org.xml.sax.EntityResolver)">setEntityResolver</A> in interface <A HREF="../../../../org/xml/sax/Parser.html">Parser</A><DT><B>Parameters:</B><DD><CODE>resolver</CODE> - The new resolver.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setEntityResolver(org.xml.sax.EntityResolver)"><CODE>Parser.setEntityResolver(org.xml.sax.EntityResolver)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setDTDHandler(org.xml.sax.DTDHandler)"><!-- --></A><H3>
|
| setDTDHandler</H3>
|
| <PRE>
|
| public void <B>setDTDHandler</B>(<A HREF="../../../../org/xml/sax/DTDHandler.html">DTDHandler</A> handler)</PRE>
|
| <DL>
|
| <DD>Register the DTD event handler.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setDTDHandler(org.xml.sax.DTDHandler)">setDTDHandler</A> in interface <A HREF="../../../../org/xml/sax/Parser.html">Parser</A><DT><B>Parameters:</B><DD><CODE>handler</CODE> - The new DTD event handler.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setDTDHandler(org.xml.sax.DTDHandler)"><CODE>Parser.setDTDHandler(org.xml.sax.DTDHandler)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setDocumentHandler(org.xml.sax.DocumentHandler)"><!-- --></A><H3>
|
| setDocumentHandler</H3>
|
| <PRE>
|
| public void <B>setDocumentHandler</B>(<A HREF="../../../../org/xml/sax/DocumentHandler.html">DocumentHandler</A> handler)</PRE>
|
| <DL>
|
| <DD>Register the SAX1 document event handler. |
| |
| <p>Note that the SAX1 document handler has no Namespace |
| support.</p><DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setDocumentHandler(org.xml.sax.DocumentHandler)">setDocumentHandler</A> in interface <A HREF="../../../../org/xml/sax/Parser.html">Parser</A><DT><B>Parameters:</B><DD><CODE>handler</CODE> - The new SAX1 document event handler.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setDocumentHandler(org.xml.sax.DocumentHandler)"><CODE>Parser.setDocumentHandler(org.xml.sax.DocumentHandler)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setErrorHandler(org.xml.sax.ErrorHandler)"><!-- --></A><H3>
|
| setErrorHandler</H3>
|
| <PRE>
|
| public void <B>setErrorHandler</B>(<A HREF="../../../../org/xml/sax/ErrorHandler.html">ErrorHandler</A> handler)</PRE>
|
| <DL>
|
| <DD>Register the error event handler.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setErrorHandler(org.xml.sax.ErrorHandler)">setErrorHandler</A> in interface <A HREF="../../../../org/xml/sax/Parser.html">Parser</A><DT><B>Parameters:</B><DD><CODE>handler</CODE> - The new error event handler.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#setErrorHandler(org.xml.sax.ErrorHandler)"><CODE>Parser.setErrorHandler(org.xml.sax.ErrorHandler)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="parse(java.lang.String)"><!-- --></A><H3>
|
| parse</H3>
|
| <PRE>
|
| public void <B>parse</B>(java.lang.String systemId) |
| throws java.io.IOException, |
| <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Parse the document. |
| |
| <p>This method will throw an exception if the embedded |
| XMLReader does not support the |
| http://xml.org/sax/features/namespace-prefixes property.</p><DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#parse(java.lang.String)">parse</A> in interface <A HREF="../../../../org/xml/sax/Parser.html">Parser</A><DT><B>Parameters:</B><DD><CODE>systemId</CODE> - The absolute URL of the document.<DT><B>Throws:</B><DD>java.io.IOException - If there is a problem reading |
| the raw content of the document.<DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - If there is a problem |
| processing the document.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#parse(org.xml.sax.InputSource)"><CODE>parse(org.xml.sax.InputSource)</CODE></A>,
|
| <A HREF="../../../../org/xml/sax/Parser.html#parse(java.lang.String)"><CODE>Parser.parse(java.lang.String)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="parse(org.xml.sax.InputSource)"><!-- --></A><H3>
|
| parse</H3>
|
| <PRE>
|
| public void <B>parse</B>(<A HREF="../../../../org/xml/sax/InputSource.html">InputSource</A> input) |
| throws java.io.IOException, |
| <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Parse the document. |
| |
| <p>This method will throw an exception if the embedded |
| XMLReader does not support the |
| http://xml.org/sax/features/namespace-prefixes property.</p><DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/Parser.html#parse(org.xml.sax.InputSource)">parse</A> in interface <A HREF="../../../../org/xml/sax/Parser.html">Parser</A><DT><B>Parameters:</B><DD><CODE>input</CODE> - An input source for the document.<DT><B>Throws:</B><DD>java.io.IOException - If there is a problem reading |
| the raw content of the document.<DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - If there is a problem |
| processing the document.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/helpers/XMLReaderAdapter.html#parse(java.lang.String)"><CODE>parse(java.lang.String)</CODE></A>,
|
| <A HREF="../../../../org/xml/sax/Parser.html#parse(org.xml.sax.InputSource)"><CODE>Parser.parse(org.xml.sax.InputSource)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setDocumentLocator(org.xml.sax.Locator)"><!-- --></A><H3>
|
| setDocumentLocator</H3>
|
| <PRE>
|
| public void <B>setDocumentLocator</B>(<A HREF="../../../../org/xml/sax/Locator.html">Locator</A> locator)</PRE>
|
| <DL>
|
| <DD>Set a document locator.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#setDocumentLocator(org.xml.sax.Locator)">setDocumentLocator</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>locator</CODE> - The document locator.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#setDocumentLocator(org.xml.sax.Locator)"><CODE>ContentHandler.setDocumentLocator(org.xml.sax.Locator)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="startDocument()"><!-- --></A><H3>
|
| startDocument</H3>
|
| <PRE>
|
| public void <B>startDocument</B>() |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Start document event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#startDocument()">startDocument</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - The client may raise a |
| processing exception.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#startDocument()"><CODE>ContentHandler.startDocument()</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="endDocument()"><!-- --></A><H3>
|
| endDocument</H3>
|
| <PRE>
|
| public void <B>endDocument</B>() |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>End document event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#endDocument()">endDocument</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - The client may raise a |
| processing exception.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#endDocument()"><CODE>ContentHandler.endDocument()</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="startPrefixMapping(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| startPrefixMapping</H3>
|
| <PRE>
|
| public void <B>startPrefixMapping</B>(java.lang.String prefix, |
| java.lang.String uri)</PRE>
|
| <DL>
|
| <DD>Adapt a SAX2 start prefix mapping event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#startPrefixMapping(java.lang.String, java.lang.String)">startPrefixMapping</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The prefix being mapped.<DD><CODE>uri</CODE> - The Namespace URI being mapped to.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#startPrefixMapping(java.lang.String, java.lang.String)"><CODE>ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="endPrefixMapping(java.lang.String)"><!-- --></A><H3>
|
| endPrefixMapping</H3>
|
| <PRE>
|
| public void <B>endPrefixMapping</B>(java.lang.String prefix)</PRE>
|
| <DL>
|
| <DD>Adapt a SAX2 end prefix mapping event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#endPrefixMapping(java.lang.String)">endPrefixMapping</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The prefix being mapped.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#endPrefixMapping(java.lang.String)"><CODE>ContentHandler.endPrefixMapping(java.lang.String)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)"><!-- --></A><H3>
|
| startElement</H3>
|
| <PRE>
|
| public void <B>startElement</B>(java.lang.String uri, |
| java.lang.String localName, |
| java.lang.String qName, |
| <A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A> atts) |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Adapt a SAX2 start element event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)">startElement</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>uri</CODE> - The Namespace URI.<DD><CODE>localName</CODE> - The Namespace local name.<DD><CODE>qName</CODE> - The qualified (prefixed) name.<DD><CODE>atts</CODE> - The SAX2 attributes.<DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - The client may raise a |
| processing exception.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#endDocument()"><CODE>ContentHandler.endDocument()</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="endElement(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| endElement</H3>
|
| <PRE>
|
| public void <B>endElement</B>(java.lang.String uri, |
| java.lang.String localName, |
| java.lang.String qName) |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Adapt a SAX2 end element event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)">endElement</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>uri</CODE> - The Namespace URI.<DD><CODE>localName</CODE> - The Namespace local name.<DD><CODE>qName</CODE> - The qualified (prefixed) name.<DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - The client may raise a |
| processing exception.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)"><CODE>ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="characters(char[], int, int)"><!-- --></A><H3>
|
| characters</H3>
|
| <PRE>
|
| public void <B>characters</B>(char[] ch, |
| int start, |
| int length) |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Adapt a SAX2 characters event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#characters(char[], int, int)">characters</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>ch</CODE> - An array of characters.<DD><CODE>start</CODE> - The starting position in the array.<DD><CODE>length</CODE> - The number of characters to use.<DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - The client may raise a |
| processing exception.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#characters(char[], int, int)"><CODE>ContentHandler.characters(char[], int, int)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="ignorableWhitespace(char[], int, int)"><!-- --></A><H3>
|
| ignorableWhitespace</H3>
|
| <PRE>
|
| public void <B>ignorableWhitespace</B>(char[] ch, |
| int start, |
| int length) |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Adapt a SAX2 ignorable whitespace event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#ignorableWhitespace(char[], int, int)">ignorableWhitespace</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>ch</CODE> - An array of characters.<DD><CODE>start</CODE> - The starting position in the array.<DD><CODE>length</CODE> - The number of characters to use.<DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - The client may raise a |
| processing exception.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#ignorableWhitespace(char[], int, int)"><CODE>ContentHandler.ignorableWhitespace(char[], int, int)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="processingInstruction(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| processingInstruction</H3>
|
| <PRE>
|
| public void <B>processingInstruction</B>(java.lang.String target, |
| java.lang.String data) |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Adapt a SAX2 processing instruction event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#processingInstruction(java.lang.String, java.lang.String)">processingInstruction</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>target</CODE> - The processing instruction target.<DD><CODE>data</CODE> - The remainder of the processing instruction<DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - The client may raise a |
| processing exception.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#processingInstruction(java.lang.String, java.lang.String)"><CODE>ContentHandler.processingInstruction(java.lang.String, java.lang.String)</CODE></A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="skippedEntity(java.lang.String)"><!-- --></A><H3>
|
| skippedEntity</H3>
|
| <PRE>
|
| public void <B>skippedEntity</B>(java.lang.String name) |
| throws <A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A></PRE>
|
| <DL>
|
| <DD>Adapt a SAX2 skipped entity event.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#skippedEntity(java.lang.String)">skippedEntity</A> in interface <A HREF="../../../../org/xml/sax/ContentHandler.html">ContentHandler</A><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the skipped entity.<DT><B>Throws:</B><DD><A HREF="../../../../org/xml/sax/SAXException.html">SAXException</A> - Throwable by subclasses.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/ContentHandler.html#skippedEntity(java.lang.String)"><CODE>ContentHandler.skippedEntity(java.lang.String)</CODE></A></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/XMLReaderAdapter.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/xml/sax/helpers/XMLFilterImpl.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/xml/sax/helpers/XMLReaderFactory.html"><B>NEXT CLASS</B></A></FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="XMLReaderAdapter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | 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>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|