public final class DocumentInputSource extends InputSource
Document
with SAX API's.
Let it look like InputSource
.Constructor and Description |
---|
DocumentInputSource(Document doc)
Creates new instance of
DocumentInputSource . |
Modifier and Type | Method and Description |
---|---|
Reader |
getCharacterStream() |
String |
getSystemId()
Get InputSource system ID.
|
void |
setCharacterStream(Reader reader)
This
InputSource is backended by Swing's Document . |
String |
toString()
For debugging purposes only.
|
getByteStream, getEncoding, getPublicId, isEmpty, setByteStream, setEncoding, setPublicId, setSystemId
public DocumentInputSource(Document doc)
DocumentInputSource
. Client should
set system ID if available otherwise default one is derived.doc
- Swing document used to be wrappedDocumentInputSource.getSystemId()
public Reader getCharacterStream()
getCharacterStream
in class InputSource
public final void setCharacterStream(Reader reader)
InputSource
is backended by Swing's Document
.
Consequently its character stream is read-only, it
always reads content of associted Document
.setCharacterStream
in class InputSource
public String getSystemId()
setSystemId()
, or
Document
e.g. look at Document.StreamDescriptionProperty
for
DataObject and use URL of its primary file.
getSystemId
in class InputSource
null