|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.cyberneko.pull.util.EventDispatcher
This class converts pull parser event objects into XNI document handler
callbacks. The user of this class is responsible for queueing of the
event objects and should call dispatchEvent for each event
to be delivered via the XNI document handler callbacks.
EventCollector| Nested Class Summary | |
static class |
EventDispatcher.ResourceIdentifierProxy
A proxy object for resource identifier passed to the start general entity method in the XNI document handler. |
| Field Summary | |
protected org.apache.xerces.xni.XMLDocumentHandler |
fDocumentHandler
The document handler. |
| Constructor Summary | |
EventDispatcher()
|
|
| Method Summary | |
void |
dispatchEvent(XMLEvent event)
Dispatches a pull parser event object by calling the appropriate |
org.apache.xerces.xni.XMLDocumentHandler |
getDocumentHandler()
Returns the document handler. |
void |
setDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler handler)
Sets the document handler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.xerces.xni.XMLDocumentHandler fDocumentHandler
| Constructor Detail |
public EventDispatcher()
| Method Detail |
public void setDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler handler)
setDocumentHandler in interface org.apache.xerces.xni.parser.XMLDocumentSourcepublic org.apache.xerces.xni.XMLDocumentHandler getDocumentHandler()
getDocumentHandler in interface org.apache.xerces.xni.parser.XMLDocumentSource
public void dispatchEvent(XMLEvent event)
throws org.apache.xerces.xni.XNIException
event - The pull parser event to deliver.
org.apache.xerces.xni.XNIException - Thrown by the handler to signal an error.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||