Package org.dom4j.io
Class DocumentInputSource
- java.lang.Object
-
- org.xml.sax.InputSource
-
- org.dom4j.io.DocumentInputSource
-
class DocumentInputSource extends InputSource
DocumentInputSourceimplements a SAXInputSourcefor aDocument.- Version:
- $Revision: 1.8 $
- Author:
- James Strachan
-
-
Constructor Summary
Constructors Constructor Description DocumentInputSource()DocumentInputSource(Document document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadergetCharacterStream()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.DocumentgetDocument()DOCUMENT ME!voidsetCharacterStream(Reader characterStream)This method is not supported as this source is always a instance.voidsetDocument(Document document)Sets the document used as the SAXInputSource-
Methods inherited from class org.xml.sax.InputSource
getByteStream, getEncoding, getPublicId, getSystemId, isEmpty, setByteStream, setEncoding, setPublicId, setSystemId
-
-
-
-
Constructor Detail
-
DocumentInputSource
public DocumentInputSource()
-
DocumentInputSource
public DocumentInputSource(Document document)
-
-
Method Detail
-
getDocument
public Document getDocument()
DOCUMENT ME!- Returns:
- the document which is being used as the SAX
InputSource
-
setDocument
public void setDocument(Document document)
Sets the document used as the SAXInputSource- Parameters:
document- DOCUMENT ME!
-
setCharacterStream
public void setCharacterStream(Reader characterStream) throws UnsupportedOperationException
This method is not supported as this source is always a instance.- Overrides:
setCharacterStreamin classInputSource- Parameters:
characterStream- DOCUMENT ME!- Throws:
UnsupportedOperationException- as this method is unsupported
-
getCharacterStream
public Reader 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:
getCharacterStreamin classInputSource- Returns:
- DOCUMENT ME!
-
-