Top Description Fields Constructors Methods
org.dom4j.io

public Class DocumentSource

extends SAXSource
Class Inheritance
Imports
javax.xml.transform.sax.SAXSource, org.dom4j.Document, .Node, org.xml.sax.InputSource, .XMLFilter, .XMLReader

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

Field Summary

Modifier and TypeField and Description
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 .

private XMLReader
xmlReader

The XMLReader to use

Inherited from javax.xml.transform.sax.SAXSource:
FEATURE

Constructor Summary

AccessConstructor and Description
public
DocumentSource(Node
DOCUMENT ME!
node
)

Creates a JAXP SAXSourcefor the given Node.

public
DocumentSource(Document
DOCUMENT ME!
document
)

Creates a JAXP SAXSourcefor the given Document.

Method Summary

Modifier and TypeMethod and Description
public Document

Returns:

the document which is being used as the JAXP SAXSource
getDocument
()

DOCUMENT ME!

public XMLReader

Returns:

the XMLReader to be used for the JAXP SAXSource.
getXMLReader
()

Overrides javax.xml.transform.sax.SAXSource.getXMLReader.

DOCUMENT ME!
public void
setDocument(Document
DOCUMENT ME!
document
)

Sets the document used as the JAXP SAXSource

public void
setInputSource(InputSource
DOCUMENT ME!
inputSource
)

Overrides javax.xml.transform.sax.SAXSource.setInputSource.

This method is not supported as this source is always a Document instance.
public void
setXMLReader(XMLReader
DOCUMENT ME!
reader
)

Overrides javax.xml.transform.sax.SAXSource.setXMLReader.

Sets the XMLReader used for the JAXP SAXSource.
Inherited from javax.xml.transform.sax.SAXSource:
getInputSourcegetSystemIdisEmptysetSystemIdsourceToInputSource

Field Detail

DOM4J_FEATUREback to summary
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 .

xmlReaderback to summary
private XMLReader xmlReader

The XMLReader to use

Constructor Detail

DocumentSourceback to summary
public DocumentSource(Node node)

Creates a JAXP SAXSourcefor the given Node.

Parameters
node:Node

DOCUMENT ME!

DocumentSourceback to summary
public DocumentSource(Document document)

Creates a JAXP SAXSourcefor the given Document.

Parameters
document:Document

DOCUMENT ME!

Method Detail

getDocumentback to summary
public Document getDocument()

DOCUMENT ME!

Returns:Document

the document which is being used as the JAXP SAXSource

getXMLReaderback to summary
public XMLReader getXMLReader()

Overrides javax.xml.transform.sax.SAXSource.getXMLReader.

DOCUMENT ME!

Returns:XMLReader

the XMLReader to be used for the JAXP SAXSource.

setDocumentback to summary
public void setDocument(Document document)

Sets the document used as the JAXP SAXSource

Parameters
document:Document

DOCUMENT ME!

setInputSourceback to summary
public void setInputSource(InputSource inputSource) throws UnsupportedOperationException

Overrides javax.xml.transform.sax.SAXSource.setInputSource.

This method is not supported as this source is always a Document instance.

Parameters
inputSource:InputSource

DOCUMENT ME!

Exceptions
UnsupportedOperationException:
as this method is unsupported
setXMLReaderback to summary
public void setXMLReader(XMLReader reader) throws UnsupportedOperationException

Overrides javax.xml.transform.sax.SAXSource.setXMLReader.

Sets the XMLReader used for the JAXP SAXSource.

Parameters
reader:XMLReader

DOCUMENT ME!

Exceptions
UnsupportedOperationException:
DOCUMENT ME!