com.sun.jini.mercury
Class EventReader

java.lang.Object
  extended by com.sun.jini.mercury.EventReader

 class EventReader
extends Object

This class provides the methods for reading RemoteEvents from a given LogInputStream.

Since:
1.1
Author:
Sun Microsystems, Inc.

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

ein

private EventReader.EventInputStream ein
Reference to EventInputStream for this class


sin

private EventReader.SwitchInputStream sin
Reference to SwitchInputStream for this class

Constructor Detail

EventReader

public EventReader()
            throws IOException
Simple constructor that creates the appropriate internal objects.

Throws:
IOException - if an I/O error occurs
Method Detail

read

public RemoteEvent read(InputStream in)
                 throws IOException,
                        ClassNotFoundException
Returns the next available RemoteEvent from the stream.

Throws:
IOException - Thrown if an I/O error occurs
ClassNotFoundException - Thrown if the class of a serialized object cannot be found.


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.