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
SAXSource for the given Document . |
DocumentSource(Node node)
Creates a JAXP
SAXSource for 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)
SAXSource
for the given Node
.node
- DOCUMENT ME!public Document getDocument()
SAXSource
public void setDocument(Document document)
SAXSource
document
- DOCUMENT ME!public org.xml.sax.XMLReader getXMLReader()
getXMLReader
in class javax.xml.transform.sax.SAXSource
SAXSource
.public void setInputSource(org.xml.sax.InputSource inputSource) throws java.lang.UnsupportedOperationException
Document
instance.setInputSource
in class javax.xml.transform.sax.SAXSource
inputSource
- 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.SAXSource
reader
- DOCUMENT ME!java.lang.UnsupportedOperationException
- DOCUMENT ME!