|
GXPARSE hosted by |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.gorman.xml.parse.toolkit.AbstractEntity
ca.gorman.xml.parse.toolkit.CoroutineEntity<T>
public class CoroutineEntity<T extends Parser>
Invokes
entity handler
from the parser thread to run in the application thread.
Constructor Summary | |
---|---|
CoroutineEntity(String name)
Constructor. |
Method Summary | |
---|---|
void |
parseContent()
Parse the content of an entity (required even if there is no content). |
void |
run()
Pop an element from the entity stack and allow its
entity handler
to return from the application thread to the parser thread. |
Methods inherited from class ca.gorman.xml.parse.toolkit.AbstractEntity |
---|
equals, getName, hashCode, newInstance, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ca.gorman.xml.parse.Entity |
---|
equals, getName, hashCode |
Constructor Detail |
---|
public CoroutineEntity(String name)
Constructor.
name
- entity name, not null
NullPointerException
- if name
is nullMethod Detail |
---|
public final void run()
Pop an element
from the entity stack and allow its
entity handler
to return from the application thread to the parser thread.
run
in interface Runnable
public final void parseContent() throws ListenerException, IOException
CurrentEntity
Parse the content of an entity (required even if there is no content).
This method causes the parser to continue operation, and does not return until the end of the entity is reached.
parseContent
in interface CurrentEntity
ListenerException
IOException
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |