Class prominence.msg.MessageInput
All Packages Class Hierarchy This Package Previous Next Index
Class prominence.msg.MessageInput
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.FilterInputStream
|
+----java.io.DataInputStream
|
+----prominence.msg.MessageInput
- public class MessageInput
- extends DataInputStream
The superclass for all message input streams.
Extends DataInputStream and adds a receive()
method that receives a new message from the attached channel.
- See Also:
- MessageOutput
-
MessageInput(InputStream)
- Creates a new MessageInput.
-
receive()
- Receives a new message from the attached channel and makes
it available to read through the standard DataInputStream
methods.
MessageInput
public MessageInput(InputStream in)
- Creates a new MessageInput.
- Parameters:
- in - Stream from which to read message data
receive
public abstract void receive() throws IOException
- Receives a new message from the attached channel and makes
it available to read through the standard DataInputStream
methods.
Subclasses will extend this class and implement this method
as appropriate for a particular communications channel.
- Throws: IOException
- Occurs if there is a problem receiving
a new message.
All Packages Class Hierarchy This Package Previous Next Index