Package org.dom4j.io
Class DocumentSource
- java.lang.Object
-
- javax.xml.transform.sax.SAXSource
-
- org.dom4j.io.DocumentSource
-
- All Implemented Interfaces:
javax.xml.transform.Source
public class DocumentSource extends javax.xml.transform.sax.SAXSource
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOM4J_FEATUREIfTransformerFactory.getFeature(java.lang.String)returnstruewhen passed this value as an argument then the Transformer natively supports dom4j .
-
Constructor Summary
Constructors Constructor Description DocumentSource(Document document)Creates a JAXPSAXSourcefor the givenDocument.DocumentSource(Node node)Creates a JAXPSAXSourcefor the givenNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentgetDocument()DOCUMENT ME!org.xml.sax.XMLReadergetXMLReader()DOCUMENT ME!voidsetDocument(Document document)Sets the document used as the JAXPSAXSourcevoidsetInputSource(org.xml.sax.InputSource inputSource)This method is not supported as this source is always aDocumentinstance.voidsetXMLReader(org.xml.sax.XMLReader reader)Sets the XMLReader used for the JAXPSAXSource.
-
-
-
Field Detail
-
DOM4J_FEATURE
public static final java.lang.String DOM4J_FEATURE
IfTransformerFactory.getFeature(java.lang.String)returnstruewhen passed this value as an argument then the Transformer natively supports dom4j .- See Also:
- Constant Field Values
-
-
Method Detail
-
getDocument
public Document getDocument()
DOCUMENT ME!- Returns:
- the document which is being used as the JAXP
SAXSource
-
setDocument
public void setDocument(Document document)
Sets the document used as the JAXPSAXSource- Parameters:
document- DOCUMENT ME!
-
getXMLReader
public org.xml.sax.XMLReader getXMLReader()
DOCUMENT ME!- Overrides:
getXMLReaderin classjavax.xml.transform.sax.SAXSource- Returns:
- the XMLReader to be used for the JAXP
SAXSource.
-
setInputSource
public void setInputSource(org.xml.sax.InputSource inputSource) throws java.lang.UnsupportedOperationExceptionThis method is not supported as this source is always aDocumentinstance.- Overrides:
setInputSourcein classjavax.xml.transform.sax.SAXSource- Parameters:
inputSource- DOCUMENT ME!- Throws:
java.lang.UnsupportedOperationException- as this method is unsupported
-
setXMLReader
public void setXMLReader(org.xml.sax.XMLReader reader) throws java.lang.UnsupportedOperationExceptionSets the XMLReader used for the JAXPSAXSource.- Overrides:
setXMLReaderin classjavax.xml.transform.sax.SAXSource- Parameters:
reader- DOCUMENT ME!- Throws:
java.lang.UnsupportedOperationException- DOCUMENT ME!
-
-