public interface EventSerializer
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying input stream
|
CloudTrailEvent |
getNextEvent()
Get the next event in the log, this one should be called after verifying that there are more events by using
hasNextEvent(). |
boolean |
hasNextEvent()
Indicates if there are more events in the current log to serialize.
|
boolean hasNextEvent()
throws java.io.IOException
true if there are more events to serialize; false otherwise.java.io.IOException - if the log could not be read.CloudTrailEvent getNextEvent() throws java.io.IOException
hasNextEvent().CloudTrailEvent.java.io.IOException - if the log could not be read.void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException - if the input stream could not be accessed or closed.