|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.mercury.EventReader
class EventReader
This class provides the methods for reading RemoteEvents from a given LogInputStream.
Nested Class Summary | |
---|---|
private static class |
EventReader.EventInputStream
This class extends ObjectInputStream in order to obtain object reading methods. |
private static class |
EventReader.SwitchInputStream
This class is intended to be the InputStream provided to EventInputStream's constructor. |
Field Summary | |
---|---|
private EventReader.EventInputStream |
ein
Reference to EventInputStream for this class |
private EventReader.SwitchInputStream |
sin
Reference to SwitchInputStream for this class |
Constructor Summary | |
---|---|
EventReader()
Simple constructor that creates the appropriate internal objects. |
Method Summary | |
---|---|
RemoteEvent |
read(InputStream in)
Returns the next available RemoteEvent from the stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private EventReader.EventInputStream ein
private EventReader.SwitchInputStream sin
Constructor Detail |
---|
public EventReader() throws IOException
IOException
- if an I/O error occursMethod Detail |
---|
public RemoteEvent read(InputStream in) throws IOException, ClassNotFoundException
IOException
- Thrown if an I/O error occurs
ClassNotFoundException
- Thrown if the class of a
serialized object cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |