|
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.Coroutine_NoCallback<T>
ca.gorman.xml.parse.toolkit.CoroutineProcessingInstruction<T>
public final class CoroutineProcessingInstruction<T extends Parser>
Invokes
processing instruction handler
from the parser thread to run in the application thread.
| Constructor Summary | |
|---|---|
CoroutineProcessingInstruction()
Construct uninitialized instance. |
|
CoroutineProcessingInstruction(Listener<T> listener)
Construct instance that cannot be used until initialized by setParams. |
|
CoroutineProcessingInstruction(Listener<T> listener,
String target,
String data)
Construct fully initialized instance, ready for immediate use. |
|
| Method Summary | |
|---|---|
Listener<T> |
getListener()
Get the listener |
void |
run()
Execute a callback from the parser thread to run the processing instruction handler in the application thread. |
void |
setListener(Listener<T> listener)
Set or reset the listener |
void |
setParams(String target,
String data)
Set or reset data to be sent to the processing instruction handler. |
| 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 CoroutineProcessingInstruction()
Construct uninitialized instance.
public CoroutineProcessingInstruction(Listener<T> listener)
Construct instance that cannot be used until initialized by
setParams.
NullPointerException - if listener is null
public CoroutineProcessingInstruction(Listener<T> listener,
String target,
String data)
Construct fully initialized instance, ready for immediate use.
NullPointerException - if listener is null| Method 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 target,
String data)
Set or reset data to be sent to the
processing instruction handler.
public void run()
Execute a callback from the parser thread to run the
processing instruction handler in the application thread.
The parser is suspended until this method returns.
run in interface RunnableCoroutineTransferException - if the processing instruction handler
throws a checked exception.
|
GXPARSE download | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||