public class EventParser
extends java.lang.Object
There is also a static method to do the parsing of an event, but without notifications.
Constructor and Description |
---|
EventParser() |
Modifier and Type | Method and Description |
---|---|
void |
addEvioListener(IEvioListener listener)
Add an Evio listener.
|
static void |
eventParse(EvioEvent evioEvent)
Method for parsing the event which will drill down and uncover all structures.
|
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 |
parseEvent(EvioEvent evioEvent,
boolean synced)
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.
|
public static void eventParse(EvioEvent evioEvent) throws EvioException
evioEvent
- the event to parse.EvioException
- if arg is null.public void parseEvent(EvioEvent evioEvent) throws EvioException
event.getTreeModel()
.evioEvent
- the event to parse.EvioException
- if arg is null or data not in evio format.public void parseEvent(EvioEvent evioEvent, boolean synced) throws EvioException
event.getTreeModel()
.evioEvent
- the event to parse.synced
- if true, synchronize this method.EvioException
- if arg is null or data not in evio format.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