/**@class org.xml.sax.helpers.XMLReaderAdapter implements org.xml.sax.Parser implements org.xml.sax.ContentHandler @extends java.lang.Object 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 {@link org.xml.sax.XMLReader XMLReader} and makes it act as a SAX1 {@link org.xml.sax.Parser Parser}. The XMLReader must support a true value for the http://xml.org/sax/features/namespace-prefixes property or parsing will fail with a {@link org.xml.sax.SAXException SAXException}; 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> @since SAX 2.0 @author David Megginson @version 2.0.1 (sax2r2) @see org.xml.sax.Parser @see org.xml.sax.XMLReader */ var XMLReaderAdapter = { /**Set the locale for error reporting. <p>This is not supported in SAX2, and will always throw an exception.</p> @param {Object {Locale}} locale the locale for error reporting. @see org.xml.sax.Parser#setLocale @exception org.xml.sax.SAXException Thrown unless overridden. */ setLocale : function( ) {}, /**Register the entity resolver. @param {Object {EntityResolver}} resolver The new resolver. @see org.xml.sax.Parser#setEntityResolver */ setEntityResolver : function( ) {}, /**Register the DTD event handler. @param {Object {DTDHandler}} handler The new DTD event handler. @see org.xml.sax.Parser#setDTDHandler */ setDTDHandler : function( ) {}, /**Register the SAX1 document event handler. <p>Note that the SAX1 document handler has no Namespace support.</p> @param {Object {DocumentHandler}} handler The new SAX1 document event handler. @see org.xml.sax.Parser#setDocumentHandler */ setDocumentHandler : function( ) {}, /**Register the error event handler. @param {Object {ErrorHandler}} handler The new error event handler. @see org.xml.sax.Parser#setErrorHandler */ setErrorHandler : function( ) {}, /**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> @param {String} systemId The absolute URL of the document. @exception java.io.IOException If there is a problem reading the raw content of the document. @exception org.xml.sax.SAXException If there is a problem processing the document. @see #parse(org.xml.sax.InputSource) @see org.xml.sax.Parser#parse(java.lang.String) */ parse : function( ) {}, /**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> @param {Object {InputSource}} input An input source for the document. @exception java.io.IOException If there is a problem reading the raw content of the document. @exception org.xml.sax.SAXException If there is a problem processing the document. @see #parse(java.lang.String) @see org.xml.sax.Parser#parse(org.xml.sax.InputSource) */ parse : function( ) {}, /**Set a document locator. @param {Object {Locator}} locator The document locator. @see org.xml.sax.ContentHandler#setDocumentLocator */ setDocumentLocator : function( ) {}, /**Start document event. @exception org.xml.sax.SAXException The client may raise a processing exception. @see org.xml.sax.ContentHandler#startDocument */ startDocument : function( ) {}, /**End document event. @exception org.xml.sax.SAXException The client may raise a processing exception. @see org.xml.sax.ContentHandler#endDocument */ endDocument : function( ) {}, /**Adapt a SAX2 start prefix mapping event. @param {String} prefix The prefix being mapped. @param {String} uri The Namespace URI being mapped to. @see org.xml.sax.ContentHandler#startPrefixMapping */ startPrefixMapping : function( ) {}, /**Adapt a SAX2 end prefix mapping event. @param {String} prefix The prefix being mapped. @see org.xml.sax.ContentHandler#endPrefixMapping */ endPrefixMapping : function( ) {}, /**Adapt a SAX2 start element event. @param {String} uri The Namespace URI. @param {String} localName The Namespace local name. @param {String} qName The qualified (prefixed) name. @param {Object {Attributes}} atts The SAX2 attributes. @exception org.xml.sax.SAXException The client may raise a processing exception. @see org.xml.sax.ContentHandler#endDocument */ startElement : function( ) {}, /**Adapt a SAX2 end element event. @param {String} uri The Namespace URI. @param {String} localName The Namespace local name. @param {String} qName The qualified (prefixed) name. @exception org.xml.sax.SAXException The client may raise a processing exception. @see org.xml.sax.ContentHandler#endElement */ endElement : function( ) {}, /**Adapt a SAX2 characters event. @param {Object {char[]}} ch An array of characters. @param {Number} start The starting position in the array. @param {Number} length The number of characters to use. @exception org.xml.sax.SAXException The client may raise a processing exception. @see org.xml.sax.ContentHandler#characters */ characters : function( ) {}, /**Adapt a SAX2 ignorable whitespace event. @param {Object {char[]}} ch An array of characters. @param {Number} start The starting position in the array. @param {Number} length The number of characters to use. @exception org.xml.sax.SAXException The client may raise a processing exception. @see org.xml.sax.ContentHandler#ignorableWhitespace */ ignorableWhitespace : function( ) {}, /**Adapt a SAX2 processing instruction event. @param {String} target The processing instruction target. @param {String} data The remainder of the processing instruction @exception org.xml.sax.SAXException The client may raise a processing exception. @see org.xml.sax.ContentHandler#processingInstruction */ processingInstruction : function( ) {}, /**Adapt a SAX2 skipped entity event. @param {String} name The name of the skipped entity. @see org.xml.sax.ContentHandler#skippedEntity @exception org.xml.sax.SAXException Throwable by subclasses. */ skippedEntity : function( ) {}, };