Class DocumentInputSource
java.lang.Object
org.xml.sax.InputSource
org.dom4j.io.DocumentInputSource
DocumentInputSource
implements a SAX InputSource
for a
Document
.
- Version:
- $Revision: 1.8 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNote this method is quite inefficent, it turns the in memory XML tree object model into a single block of text which can then be read by other XML parsers.DOCUMENT ME!void
setCharacterStream
(Reader characterStream) This method is not supported as this source is always a instance.void
setDocument
(Document document) Sets the document used as the SAXInputSource
Methods inherited from class InputSource
getByteStream, getEncoding, getPublicId, getSystemId, isEmpty, setByteStream, setEncoding, setPublicId, setSystemId
-
Field Details
-
document
The document source
-
-
Constructor Details
-
DocumentInputSource
public DocumentInputSource() -
DocumentInputSource
-
-
Method Details
-
getDocument
DOCUMENT ME!- Returns:
- the document which is being used as the SAX
InputSource
-
setDocument
Sets the document used as the SAXInputSource
- Parameters:
document
- DOCUMENT ME!
-
setCharacterStream
This method is not supported as this source is always a instance.- Overrides:
setCharacterStream
in classInputSource
- Parameters:
characterStream
- DOCUMENT ME!- Throws:
UnsupportedOperationException
- as this method is unsupported
-
getCharacterStream
Note this method is quite inefficent, it turns the in memory XML tree object model into a single block of text which can then be read by other XML parsers. Should only be used with care.- Overrides:
getCharacterStream
in classInputSource
- Returns:
- DOCUMENT ME!
-