java.lang.Object | +--org.xml.sax.helpers.ParserAdapterAll Implemented Interfaces:
org.xml.sax.helpers.XMLReaderAdapter
org.xml.sax.XMLReader
org.xml.sax.Parser
Construct a new parser adapter. |
ParserAdapter(Parser parser) Construct a new parser adapter. |
void | characters(char[] ch, int start, int length) Adapter implementation method; do not call. |
void | Adapter implementation method; do not call. |
void | endElement(java.lang.String qName) Adapter implementation method; do not call. |
Return the current content handler. | |
Return the current DTD handler. | |
Return the current entity resolver. | |
Return the current error handler. | |
boolean | getFeature(java.lang.String name) Check a parser feature flag. |
java.lang.Object | getProperty(java.lang.String name) Get a parser property. |
void | ignorableWhitespace(char[] ch, int start, int length) Adapter implementation method; do not call. |
void | parse(java.lang.String systemId) Parse an XML document. |
void | parse(InputSource input) Parse an XML document. |
void | processingInstruction(java.lang.String target, java.lang.String data) Adapter implementation method; do not call. |
void | setContentHandler(ContentHandler handler) Set the content handler. |
void | setDocumentLocator(Locator locator) Adapter implementation method; do not call. |
void | setDTDHandler(DTDHandler handler) Set the DTD handler. |
void | setEntityResolver(EntityResolver resolver) Set the entity resolver. |
void | setErrorHandler(ErrorHandler handler) Set the error handler. |
void | setFeature(java.lang.String name, boolean value) Set a feature flag for the parser. |
void | setProperty(java.lang.String name, java.lang.Object value) Set a parser property. |
void | Adapter implementation method; do not call. |
void | startElement(java.lang.String qName, AttributeList qAtts) Adapter implementation method; do not call. |
public ParserAdapter()
SAXException
- If the embedded driver
cannot be instantiated or if the
org.xml.sax.parser property is not specified.public ParserAdapter(Parser parser)
java.lang.NullPointerException
- If the parser parameter
is null.public void characters(char[] ch, int start, int length)
SAXException
- The client may raise a
processing exception.org.xml.sax.DocumentHandler.characters
public void endDocument()
SAXException
- The client may raise a
processing exception.org.xml.sax.DocumentHandler.endDocument
public void endElement(java.lang.String qName)
SAXException
- The client may raise a
processing exception.org.xml.sax.DocumentHandler.endElement
public ContentHandler getContentHandler()
org.xml.sax.XMLReader.getEntityResolver
public DTDHandler getDTDHandler()
org.xml.sax.XMLReader.getEntityResolver
public EntityResolver getEntityResolver()
org.xml.sax.XMLReader.getEntityResolver
public ErrorHandler getErrorHandler()
org.xml.sax.XMLReader.getEntityResolver
public boolean getFeature(java.lang.String name)
SAXNotRecognizedException
- If the feature
value can't be assigned or retrieved.SAXNotSupportedException
- If the
feature is not currently readable.org.xml.sax.XMLReader.setFeature
public Object getProperty(java.lang.String name)
SAXNotRecognizedException
- If the property
value can't be assigned or retrieved.SAXNotSupportedException
- If the property
value is not currently readable.org.xml.sax.XMLReader.getProperty
public void ignorableWhitespace(char[] ch, int start, int length)
SAXException
- The client may raise a
processing exception.org.xml.sax.DocumentHandler.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.DocumentHandler.processingInstruction
public void setContentHandler(ContentHandler handler)
org.xml.sax.XMLReader.setEntityResolver
public void setDocumentLocator(Locator locator)
org.xml.sax.ContentHandler.setDocumentLocator
public void setDTDHandler(DTDHandler handler)
org.xml.sax.XMLReader.setEntityResolver
public void setEntityResolver(EntityResolver resolver)
org.xml.sax.XMLReader.setEntityResolver
public void setErrorHandler(ErrorHandler handler)
org.xml.sax.XMLReader.setEntityResolver
public void setFeature(java.lang.String name, boolean value)
SAXNotRecognizedException
- If the feature
can't be assigned or retrieved.SAXNotSupportedException
- If the feature
can't be assigned that value.org.xml.sax.XMLReader.setFeature
public void setProperty(java.lang.String name, java.lang.Object value)
SAXNotRecognizedException
- If the property
value can't be assigned or retrieved.SAXNotSupportedException
- If the property
can't be assigned that value.org.xml.sax.XMLReader.setProperty
public void startDocument()
SAXException
- The client may raise a
processing exception.org.xml.sax.DocumentHandler.startDocument
public void startElement(java.lang.String qName, AttributeList qAtts)
SAXException
- The client may raise a
processing exception.