public class DocumentSource extends SAXSource
Modifier and Type | Field and Description |
---|---|
static String |
DOM4J_FEATURE
If
TransformerFactory.getFeature(java.lang.String)
returns true when passed this value as an argument
then the Transformer natively supports dom4j. |
private XMLReader |
xmlReader
The XMLReader to use
|
Constructor and Description |
---|
DocumentSource(Document document)
|
DocumentSource(Node node)
|
Modifier and Type | Method and Description |
---|---|
Document |
getDocument() |
XMLReader |
getXMLReader() |
void |
setDocument(Document document)
Sets the document used as the JAXP
Source |
void |
setInputSource(InputSource inputSource)
This method is not supported as this source is always a
Document instance. |
void |
setXMLReader(XMLReader reader)
Sets the XMLReader used for the JAXP
Source . |
getInputSource, getSystemId, setSystemId, sourceToInputSource
public static final 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)
public DocumentSource(Document document)
public Document getDocument()
Source
public void setDocument(Document document)
Source
public XMLReader getXMLReader()
getXMLReader
in class SAXSource
Source
.public void setInputSource(InputSource inputSource) throws UnsupportedOperationException
Document
instance.setInputSource
in class SAXSource
UnsupportedOperationException
- as this method is unsupportedpublic void setXMLReader(XMLReader reader) throws UnsupportedOperationException
Source
.setXMLReader
in class SAXSource
UnsupportedOperationException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses