class EventReader extends Object
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
private EventReader.EventInputStream |
ein
Reference to EventInputStream for this class
|
private EventReader.SwitchInputStream |
sin
Reference to SwitchInputStream for this class
|
| Constructor and Description |
|---|
EventReader()
Simple constructor that creates the appropriate internal objects.
|
| Modifier and Type | Method and Description |
|---|---|
RemoteEvent |
read(InputStream in)
Returns the next available RemoteEvent from the stream.
|
private EventReader.EventInputStream ein
private EventReader.SwitchInputStream sin
public EventReader()
throws IOException
IOException - if an I/O error occurspublic RemoteEvent read(InputStream in) throws IOException, ClassNotFoundException
IOException - Thrown if an I/O error occursClassNotFoundException - Thrown if the class of a
serialized object cannot be found.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.