public class DocumentSource
extends javax.xml.transform.sax.SAXSource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DOM4J_FEATURE
If
TransformerFactory.getFeature(java.lang.String)returns
true when passed this value as an argument then the
Transformer natively supports dom4j . |
| Constructor and Description |
|---|
DocumentSource(Document document)
Creates a JAXP
SAXSourcefor the given Document. |
DocumentSource(Node node)
Creates a JAXP
SAXSourcefor the given Node. |
| Modifier and Type | Method and Description |
|---|---|
Document |
getDocument()
DOCUMENT ME!
|
org.xml.sax.XMLReader |
getXMLReader()
DOCUMENT ME!
|
void |
setDocument(Document document)
Sets the document used as the JAXP
SAXSource |
void |
setInputSource(org.xml.sax.InputSource inputSource)
This method is not supported as this source is always a
Document
instance. |
void |
setXMLReader(org.xml.sax.XMLReader reader)
Sets the XMLReader used for the JAXP
SAXSource. |
public static final java.lang.String DOM4J_FEATURE
TransformerFactory.getFeature(java.lang.String)returns
true when passed this value as an argument then the
Transformer natively supports dom4j .public DocumentSource(Node node)
SAXSourcefor the given Node.node - DOCUMENT ME!public Document getDocument()
SAXSourcepublic void setDocument(Document document)
SAXSourcedocument - DOCUMENT ME!public org.xml.sax.XMLReader getXMLReader()
getXMLReader in class javax.xml.transform.sax.SAXSourceSAXSource.public void setInputSource(org.xml.sax.InputSource inputSource)
throws java.lang.UnsupportedOperationException
Document
instance.setInputSource in class javax.xml.transform.sax.SAXSourceinputSource - DOCUMENT ME!java.lang.UnsupportedOperationException - as this method is unsupportedpublic void setXMLReader(org.xml.sax.XMLReader reader)
throws java.lang.UnsupportedOperationException
SAXSource.setXMLReader in class javax.xml.transform.sax.SAXSourcereader - DOCUMENT ME!java.lang.UnsupportedOperationException - DOCUMENT ME!