| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinput.BinaryEventsReader
public class BinaryEventsReader
Reads External Events from a binary file. Can also create binary files from a list of external events.
| Field Summary | |
|---|---|
static java.lang.String | 
BINARY_EXT
Extension of binary external events file  | 
| Constructor Summary | |
|---|---|
BinaryEventsReader(java.io.File eventsFile)
Constructor.  | 
|
| Method Summary | |
|---|---|
 void | 
close()
Closes the input file streams of the reader.  | 
static boolean | 
isBinaryEeFile(java.io.File file)
Checks if the given file is a binary external events file  | 
 java.util.List<ExternalEvent> | 
readEvents(int nrof)
Read events from a binary file created with storeBinaryFile method  | 
static void | 
storeToBinaryFile(java.lang.String fileName,
                  java.util.List<ExternalEvent> events)
Stores the events to a binary file  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String BINARY_EXT
| Constructor Detail | 
|---|
public BinaryEventsReader(java.io.File eventsFile)
eventsFile - The file where the events are read| Method Detail | 
|---|
public java.util.List<ExternalEvent> readEvents(int nrof)
readEvents in interface ExternalEventsReadernrof - Maximum number of events to read
storeToBinaryFile(String, List)public static boolean isBinaryEeFile(java.io.File file)
file - The file to check
public static void storeToBinaryFile(java.lang.String fileName,
                                     java.util.List<ExternalEvent> events)
                              throws java.io.IOException
fileName - Path to the file where the events are storedevents - List of events to store
java.io.IOException - if something in storing went wrongpublic void close()
ExternalEventsReader
close in interface ExternalEventsReader
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||