org.dom4j.io

Class DocumentSource

public class DocumentSource extends SAXSource

DocumentSource implements a JAXP {@link SAXSource}for a {@linkDocument}.

Version: $Revision: 1.10 $

Author: James Strachan

Field Summary
static StringDOM4J_FEATURE
If {@link javax.xml.transform.TransformerFactory#getFeature}returns true when passed this value as an argument then the Transformer natively supports dom4j .
Constructor Summary
DocumentSource(Node node)
Creates a JAXP {@link SAXSource}for the given {@link Node}.
DocumentSource(Document document)
Creates a JAXP {@link SAXSource}for the given {@link Document}.
Method Summary
DocumentgetDocument()
DOCUMENT ME!
XMLReadergetXMLReader()
DOCUMENT ME!
voidsetDocument(Document document)
Sets the document used as the JAXP {@link SAXSource}
voidsetInputSource(InputSource inputSource)
This method is not supported as this source is always a {@linkDocument} instance.
voidsetXMLReader(XMLReader reader)
Sets the XMLReader used for the JAXP {@link SAXSource}.

Field Detail

DOM4J_FEATURE

public static final String DOM4J_FEATURE
If {@link javax.xml.transform.TransformerFactory#getFeature}returns true when passed this value as an argument then the Transformer natively supports dom4j .

Constructor Detail

DocumentSource

public DocumentSource(Node node)
Creates a JAXP {@link SAXSource}for the given {@link Node}.

Parameters: node DOCUMENT ME!

DocumentSource

public DocumentSource(Document document)
Creates a JAXP {@link SAXSource}for the given {@link Document}.

Parameters: document DOCUMENT ME!

Method Detail

getDocument

public Document getDocument()
DOCUMENT ME!

Returns: the document which is being used as the JAXP {@link SAXSource}

getXMLReader

public XMLReader getXMLReader()
DOCUMENT ME!

Returns: the XMLReader to be used for the JAXP {@link SAXSource}.

setDocument

public void setDocument(Document document)
Sets the document used as the JAXP {@link SAXSource}

Parameters: document DOCUMENT ME!

setInputSource

public void setInputSource(InputSource inputSource)
This method is not supported as this source is always a {@linkDocument} instance.

Parameters: inputSource DOCUMENT ME!

Throws: UnsupportedOperationException as this method is unsupported

setXMLReader

public void setXMLReader(XMLReader reader)
Sets the XMLReader used for the JAXP {@link SAXSource}.

Parameters: reader DOCUMENT ME!

Throws: UnsupportedOperationException DOCUMENT ME!

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge