public class EventReader
extends java.lang.Object
Utility class to read Event
objects from a text stream in event file format
(individually, or in batches with optional timestamps if the BATCH keyword
is used in the input stream).
See the Apama documentation for details of the event file format used by this class.
Constructor and Description |
---|
EventReader(java.io.BufferedReader source,
java.lang.String defaultChannel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector<Event> |
getNextEvents(java.lang.Long[] timestampHolder,
java.lang.Boolean[] finishedHolder)
Read the next (batch of) event(s) from the bufferedReader.
|
public EventReader(java.io.BufferedReader source, java.lang.String defaultChannel)
source
- An initialised instance of BufferedReaderpublic java.util.Vector<Event> getNextEvents(java.lang.Long[] timestampHolder, java.lang.Boolean[] finishedHolder)
timestampHolder
- This must be an array of java.lang.Long
of size 1 - used for returning the timestamp.finishedHolder
- This must be an array of java.lang.Boolean
of size 1 - used for returning the finished flag.Vector
containing com.apama.event.Event
objects.Submit a bug or feature
Copyright (c) 2013-2018 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.