public class SimpleXMLReader extends org.xml.sax.helpers.XMLFilterImpl
XMLReader based on XMLFilterImpl, which implements the parse() methods
(default behavior of XMLFilterImpl is to delegate to a
parent XMLReader, and throw NullPointerException
if there is no parent).
Since this class extends XMLFilterImpl, it exposes all
public handler methods, and can be used to write a filtered source
for an XML transform.
| Constructor and Description |
|---|
SimpleXMLReader()
Creates a new instance, using the default configuration of
SAXParserFactory. |
SimpleXMLReader(SAXParser parser)
Creates a new instance, wrapping a pre-existing parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(InputSource input) |
void |
parse(String systemId) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningpublic SimpleXMLReader()
SAXParserFactory. The checked exceptions thrown by the factory are
caught and rethrown as XmlException.public SimpleXMLReader(SAXParser parser)
public void parse(InputSource input) throws SAXException, IOException
parse in interface XMLReaderparse in class org.xml.sax.helpers.XMLFilterImplSAXExceptionIOExceptionpublic void parse(String systemId) throws SAXException, IOException
parse in interface XMLReaderparse in class org.xml.sax.helpers.XMLFilterImplSAXExceptionIOException