|
GXPARSE hosted by | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.gorman.xml.parse.toolkit.Coroutine_NoCallback<T> ca.gorman.xml.parse.toolkit.Coroutine_Callback<T> ca.gorman.xml.parse.toolkit.CoroutineDtd<T>
public final class CoroutineDtd<T extends Parser>
Invokes
DTD handler
from the parser thread to run in the application thread.
Constructor Summary | |
---|---|
CoroutineDtd()
Construct instance that cannot be used until initialized by setCoroutine ,
setListener and
setParams . |
|
CoroutineDtd(Coroutine coroutine)
Construct instance that cannot be used until initialized by setListener and
setParams . |
|
CoroutineDtd(Coroutine coroutine,
Listener<T> listener)
Construct instance that cannot be used until initialized by setParams . |
|
CoroutineDtd(Coroutine coroutine,
Listener<T> listener,
String name,
String publicId,
String systemId)
Construct fully initialized instance, ready for immediate use. |
Method Summary | |
---|---|
String |
getDocTypeName()
Get the document type name. |
Listener<T> |
getListener()
Get the listener . |
String |
getPublicId()
Get the public identifier for the external DTD subset. |
String |
getSystemId()
Get the system identifier for the external DTD subset. |
void |
parseContent()
Parse the content of a Dtd . |
void |
run()
Execute a callback from the parser thread to run the DTD handler
in the application thread. |
void |
setListener(Listener<T> listener)
Set or reset the listener . |
void |
setParams(String name,
String publicId,
String systemId)
Set or reset data to be sent to the DTD handler . |
Methods inherited from class ca.gorman.xml.parse.toolkit.Coroutine_Callback |
---|
getCoroutine, setCoroutine |
Methods inherited from class ca.gorman.xml.parse.toolkit.Coroutine_NoCallback |
---|
getParser, setParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoroutineDtd()
Construct instance that cannot be used until initialized by
setCoroutine
,
setListener
and
setParams
.
public CoroutineDtd(Coroutine coroutine)
Construct instance that cannot be used until initialized by
setListener
and
setParams
.
NullPointerException
- if coroutine is nullpublic CoroutineDtd(Coroutine coroutine, Listener<T> listener)
Construct instance that cannot be used until initialized by
setParams
.
NullPointerException
- if coroutine or listener is nullpublic CoroutineDtd(Coroutine coroutine, Listener<T> listener, String name, String publicId, String systemId)
Construct fully initialized instance, ready for immediate use.
NullPointerException
- if coroutine or listener is nullMethod Detail |
---|
public void setListener(Listener<T> listener)
Set or reset the listener
.
NullPointerException
- if listener is nullpublic Listener<T> getListener()
Get the listener
.
public void setParams(String name, String publicId, String systemId)
Set or reset data to be sent to the
DTD handler
.
public void run()
Execute a callback from the parser thread to run the
DTD handler
in the application thread.
This method is invoked just before the parser starts parsing the actual
DTD, and runs until the parser reaches the end of the DTD.
The parser is suspended until the
DTD handler
invokes
the parseContent
method.
run
in interface Runnable
CoroutineTransferException
- if the
DTD handler
throws an exception.public final void parseContent() throws ListenerException, IOException
CurrentDtd
Parse the content of a Dtd
.
This method causes the parser to continue operation, and does not
return until the end of the DTD is reached. No part of the
Dtd
has been parsed before this method is invoked.
After this method returns, the DTD is available from <
parseContent
in interface CurrentDtd
ListenerException
IOException
public String getDocTypeName()
Dtd
Get the document type name.
getDocTypeName
in interface Dtd
public String getPublicId()
Dtd
Get the public identifier for the external DTD subset.
getPublicId
in interface Dtd
public String getSystemId()
Dtd
Get the system identifier for the external DTD subset.
getSystemId
in interface Dtd
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |