java.lang.Object | +--org.xml.sax.helpers.XMLReaderAdapterAll Implemented Interfaces:
org.xml.sax.Parser
org.xml.sax.XMLReader
Create a new adapter. |
XMLReaderAdapter(XMLReader xmlReader) Create a new adapter. |
void | characters(char[] ch, int start, int length) Adapt a SAX2 characters event. |
void | End document event. |
void | endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) Adapt a SAX2 end element event. |
void | endPrefixMapping(java.lang.String prefix) Adapt a SAX2 end prefix mapping event. |
void | ignorableWhitespace(char[] ch, int start, int length) Adapt a SAX2 ignorable whitespace event. |
void | parse(java.lang.String systemId) Parse the document. |
void | parse(InputSource input) Parse the document. |
void | processingInstruction(java.lang.String target, java.lang.String data) Adapt a SAX2 processing instruction event. |
void | setDocumentHandler(DocumentHandler handler) Register the SAX1 document event handler. |
void | setDocumentLocator(Locator locator) Set a document locator. |
void | setDTDHandler(DTDHandler handler) Register the DTD event handler. |
void | setEntityResolver(EntityResolver resolver) Register the entity resolver. |
void | setErrorHandler(ErrorHandler handler) Register the error event handler. |
void | setLocale(java.util.Locale locale) Set the locale for error reporting. |
void | skippedEntity(java.lang.String name) Adapt a SAX2 skipped entity event. |
void | Start document event. |
void | startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, Attributes atts) Adapt a SAX2 start element event. |
void | startPrefixMapping(java.lang.String prefix, java.lang.String uri) Adapt a SAX2 start prefix mapping event. |
public XMLReaderAdapter()
SAXException
- If the embedded driver
cannot be instantiated or if the
org.xml.sax.driver property is not specified.public XMLReaderAdapter(XMLReader xmlReader)
java.lang.NullPointerException
- If the argument is null.public void characters(char[] ch, int start, int length)
SAXException
- The client may raise a
processing exception.org.xml.sax.ContentHandler.characters
public void endDocument()
SAXException
- The client may raise a
processing exception.org.xml.sax.ContentHandler.endDocument
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
SAXException
- The client may raise a
processing exception.org.xml.sax.ContentHandler.endElement
public void endPrefixMapping(java.lang.String prefix)
org.xml.sax.ContentHandler.endPrefixMapping
public void ignorableWhitespace(char[] ch, int start, int length)
SAXException
- The client may raise a
processing exception.org.xml.sax.ContentHandler.ignorableWhitespace
public void parse(java.lang.String systemId)
java.io.IOException
- If there is a problem reading
the raw content of the document.SAXException
- If there is a problem
processing the document.parse(org.xml.sax.InputSource)
org.xml.sax.Parser.parse(java.lang.String)
public void parse(InputSource input)
java.io.IOException
- If there is a problem reading
the raw content of the document.SAXException
- If there is a problem
processing the document.parse(java.lang.String)
org.xml.sax.Parser.parse(org.xml.sax.InputSource)
public void processingInstruction(java.lang.String target, java.lang.String data)
SAXException
- The client may raise a
processing exception.org.xml.sax.ContentHandler.processingInstruction
public void setDocumentHandler(DocumentHandler handler)
org.xml.sax.Parser.setDocumentHandler
public void setDocumentLocator(Locator locator)
org.xml.sax.ContentHandler.setDocumentLocator
public void setDTDHandler(DTDHandler handler)
org.xml.sax.Parser.setDTDHandler
public void setEntityResolver(EntityResolver resolver)
org.xml.sax.Parser.setEntityResolver
public void setErrorHandler(ErrorHandler handler)
org.xml.sax.Parser.setErrorHandler
public void setLocale(java.util.Locale locale)
SAXException
- Thrown unless overridden.org.xml.sax.Parser.setLocale
public void skippedEntity(java.lang.String name)
SAXException
- Throwable by subclasses.org.xml.sax.ContentHandler.skippedEntity
public void startDocument()
SAXException
- The client may raise a
processing exception.org.xml.sax.ContentHandler.startDocument
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, Attributes atts)
SAXException
- The client may raise a
processing exception.org.xml.sax.ContentHandler.endDocument
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
org.xml.sax.ContentHandler.startPrefixMapping