|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavanet.staxutils.helpers.ListEventConsumer
public class ListEventConsumer
XMLEventConsumer
that stores all added events in a List
.
Constructor Summary | |
---|---|
ListEventConsumer()
|
|
ListEventConsumer(java.util.List events)
Constructs an instance that adds events to the provided list. |
Method Summary | |
---|---|
void |
add(XMLEvent event)
Adds the event to the internal list. |
java.util.List |
getEvents()
Returns the List of events added to this consumer. |
void |
reset()
Removes all events from the internal list, making it available for reuse. |
void |
setEvents(java.util.List events)
Sets the List to which events will be written. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListEventConsumer()
public ListEventConsumer(java.util.List events)
events
- The list to which events will be added, or null
.Method Detail |
---|
public void add(XMLEvent event) throws XMLStreamException
add
in interface XMLEventConsumer
XMLStreamException
public java.util.List getEvents()
List
of events added to this consumer.
List
of events added to this consumer.public void setEvents(java.util.List events)
List
to which events will be written.
events
- The List
to which events will be written.public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |