Package org.dom4j.io
Class DocumentSource
java.lang.Object
javax.xml.transform.sax.SAXSource
org.dom4j.io.DocumentSource
- All Implemented Interfaces:
Source
DocumentSource
implements a JAXP SAXSource
for a
.
- Version:
- $Revision: 1.10 $
- Author:
- James Strachan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
IfTransformerFactory.getFeature(java.lang.String)
returnstrue
when passed this value as an argument then the Transformer natively supports dom4j . -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDOCUMENT ME!DOCUMENT ME!void
setDocument
(Document document) Sets the document used as the JAXPSAXSource
void
setInputSource
(InputSource inputSource) This method is not supported as this source is always a instance.void
setXMLReader
(XMLReader reader) Sets the XMLReader used for the JAXPSAXSource
.Methods inherited from class javax.xml.transform.sax.SAXSource
getInputSource, getSystemId, isEmpty, setSystemId, sourceToInputSource
-
Field Details
-
DOM4J_FEATURE
IfTransformerFactory.getFeature(java.lang.String)
returnstrue
when passed this value as an argument then the Transformer natively supports dom4j .- See Also:
-
-
Constructor Details
-
DocumentSource
- Parameters:
node
- DOCUMENT ME!
-
DocumentSource
- Parameters:
document
- DOCUMENT ME!
-
-
Method Details
-
getDocument
DOCUMENT ME!- Returns:
- the document which is being used as the JAXP
SAXSource
-
setDocument
Sets the document used as the JAXPSAXSource
- Parameters:
document
- DOCUMENT ME!
-
getXMLReader
DOCUMENT ME!- Overrides:
getXMLReader
in classSAXSource
- Returns:
- the XMLReader to be used for the JAXP
SAXSource
.
-
setInputSource
This method is not supported as this source is always a instance.- Overrides:
setInputSource
in classSAXSource
- Parameters:
inputSource
- DOCUMENT ME!- Throws:
UnsupportedOperationException
- as this method is unsupported
-
setXMLReader
Sets the XMLReader used for the JAXPSAXSource
.- Overrides:
setXMLReader
in classSAXSource
- Parameters:
reader
- DOCUMENT ME!- Throws:
UnsupportedOperationException
- DOCUMENT ME!
-