java.lang.ObjectSAXOutputter
JDOMSource.DocumentReader
private static class JDOMSource.DocumentReader
An implementation of the SAX2 XMLReader interface that presents a SAX view of a JDOM Document. The actual generation of the SAX events is delegated to JDOM's SAXOutputter.
Document
, output.SAXOutputter
Constructor Summary | |
---|---|
JDOMSource.DocumentReader() Public default constructor. |
Method Summary | |
---|---|
void | parse(org.xml.sax.InputSource input) Parses an XML document. |
void | parse(java.lang.String systemId) Parses an XML document from a system identifier (URI). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.XMLReader |
---|
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty |
Constructor Detail |
---|
public JDOMSource.DocumentReader()
Method Detail |
---|
public void parse(java.lang.String systemId) throws org.xml.sax.SAXNotSupportedException
This implementation does not support reading XML data from system identifiers, only from JDOM documents. Hence, this method always throws a SAXNotSupportedException
.
parse
in interface org.xml.sax.XMLReader
systemId
- the system identifier (URI). org.xml.sax.SAXNotSupportedException
- always!public void parse(org.xml.sax.InputSource input) throws org.xml.sax.SAXException
The methods accepts only JDOMInputSource
s instances as input sources.
parse
in interface org.xml.sax.XMLReader
input
- the input source for the top-level of the XML document. org.xml.sax.SAXException
- any SAX exception, possibly wrapping another exception. org.xml.sax.SAXNotSupportedException
- if the input source does not wrap a JDOM document.