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

Constructor Index

 o MessageInput(InputStream)
Creates a new MessageInput.

Method Index

 o receive()
Receives a new message from the attached channel and makes it available to read through the standard DataInputStream methods.

Constructors

 o MessageInput
  public MessageInput(InputStream in)
Creates a new MessageInput.
Parameters:
in - Stream from which to read message data

Methods

 o 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