|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jlab.coda.jevio.EventParser
public class EventParser
Creates an object that controls the parsing of events. This object, like the EvioReader object, has a method for parsing an event. An EvioReader object will ultimately call this method--i.e., the concrete implementation of event parsing is in this class.
Constructor Summary | |
---|---|
EventParser()
|
Method Summary | |
---|---|
void |
addEvioListener(IEvioListener listener)
Add an Evio listener. |
boolean |
isNotificationActive()
Get the flag determining whether notification of listeners is active. |
void |
parseEvent(EvioEvent evioEvent)
This is the workhorse method for parsing the event. |
void |
removeEvioListener(IEvioListener listener)
Remove an Evio listener. |
void |
setEvioFilter(IEvioFilter evioFilter)
Set the global filter used for filtering structures. |
void |
setNotificationActive(boolean notificationActive)
Set the flag determining whether notification of listeners is active. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventParser()
Method Detail |
---|
public void parseEvent(EvioEvent evioEvent) throws EvioException
event.getTreeModel()
.
evioEvent
- the event to parse.
EvioException
public void removeEvioListener(IEvioListener listener)
listener
- The Evio listener to remove.public void addEvioListener(IEvioListener listener)
listener
- The Evio listener to add.public boolean isNotificationActive()
true
if notification of events to the listeners is active.public void setNotificationActive(boolean notificationActive)
notificationActive
- set true
if notification of events to the listeners is active.public void setEvioFilter(IEvioFilter evioFilter)
null
, the default, then all
structures will be sent to the listeners.
evioFilter
- the filter to set.IEvioFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |