|
org.netbeans.api.xml/1 1.14 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.InputSource
org.netbeans.api.xml.parsers.DocumentInputSource
public final class DocumentInputSource
Integrate NetBeans widely used Swing's Document
with SAX API's.
Let it look like InputSource
.
Constructor Summary | |
---|---|
DocumentInputSource(Document doc)
Creates new instance of DocumentInputSource . |
Method Summary | |
---|---|
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. |
Methods inherited from class org.xml.sax.InputSource |
---|
getByteStream, getEncoding, getPublicId, setByteStream, setEncoding, setPublicId, setSystemId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DocumentInputSource(Document doc)
DocumentInputSource
. Client should
set system ID if available otherwise default one is derived.
doc
- Swing document used to be wrappedgetSystemId()
Method Detail |
---|
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
public String toString()
|
org.netbeans.api.xml/1 1.14 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |