EventRequest interface is used for obtaining the information about event
(i.e. event name and data).
This interface provides two ways of getting the event data: (1) An Object
instance using getEventData method or (2) An InputStream using
getEventStream method. Event data can be obtained by reading from the
stream.