class DocumentInputSource
extends org.xml.sax.InputSource
DocumentInputSource implements a SAX InputSourcefor a
Document.
| Modifier and Type | Field and Description |
|---|---|
private Document |
document
The document source
|
| Constructor and Description |
|---|
DocumentInputSource() |
DocumentInputSource(Document document) |
| Modifier and Type | Method and Description |
|---|---|
java.io.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.
|
Document |
getDocument()
DOCUMENT ME!
|
void |
setCharacterStream(java.io.Reader characterStream)
This method is not supported as this source is always a
instance.
|
void |
setDocument(Document document)
Sets the document used as the SAX
InputSource |
private Document document
public DocumentInputSource()
public DocumentInputSource(Document document)
public Document getDocument()
InputSourcepublic void setDocument(Document document)
InputSourcedocument - DOCUMENT ME!public void setCharacterStream(java.io.Reader characterStream)
throws java.lang.UnsupportedOperationException
setCharacterStream in class org.xml.sax.InputSourcecharacterStream - DOCUMENT ME!java.lang.UnsupportedOperationException - as this method is unsupportedpublic java.io.Reader getCharacterStream()
getCharacterStream in class org.xml.sax.InputSource