org.dom4j.io

Class DocumentSource


public class DocumentSource
extends SAXSource

DocumentSource implements a JAXP SAXSourcefor a .
Version:
$Revision: 1.10 $
Author:
James Strachan

Field Summary

static String
DOM4J_FEATURE
If javax.xml.transform.TransformerFactory.getFeaturereturns true when passed this value as an argument then the Transformer natively supports dom4j .

Constructor Summary

DocumentSource(Document document)
Creates a JAXP SAXSourcefor the given Document.
DocumentSource(Node node)
Creates a JAXP SAXSourcefor the given Node.

Method Summary

Document
getDocument()
DOCUMENT ME!
XMLReader
getXMLReader()
DOCUMENT ME!
void
setDocument(Document document)
Sets the document used as the JAXP SAXSource
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 JAXP SAXSource.

Field Details

DOM4J_FEATURE

public static final String DOM4J_FEATURE
If javax.xml.transform.TransformerFactory.getFeaturereturns true when passed this value as an argument then the Transformer natively supports dom4j .

Constructor Details

DocumentSource

public DocumentSource(Document document)
Creates a JAXP SAXSourcefor the given Document.
Parameters:
document - DOCUMENT ME!

DocumentSource

public DocumentSource(Node node)
Creates a JAXP SAXSourcefor the given Node.
Parameters:
node - DOCUMENT ME!

Method Details

getDocument

public Document getDocument()
DOCUMENT ME!
Returns:
the document which is being used as the JAXP SAXSource

getXMLReader

public XMLReader getXMLReader()
DOCUMENT ME!
Returns:
the XMLReader to be used for the JAXP SAXSource.

setDocument

public void setDocument(Document document)
Sets the document used as the JAXP SAXSource
Parameters:
document - DOCUMENT ME!

setInputSource

public void setInputSource(InputSource inputSource)
            throws UnsupportedOperationException
This method is not supported as this source is always a instance.
Parameters:
inputSource - DOCUMENT ME!

setXMLReader

public void setXMLReader(XMLReader reader)
            throws UnsupportedOperationException
Sets the XMLReader used for the JAXP SAXSource.
Parameters:
reader - DOCUMENT ME!

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

SourceForge Logo