com.caucho.hmtp
Class HmtpWebSocketReader

java.lang.Object
  extended by com.caucho.hmtp.HmtpWebSocketReader

public class HmtpWebSocketReader
extends java.lang.Object

HmtpReader stream handles client packets received from the server.


Constructor Summary
HmtpWebSocketReader(java.io.InputStream is)
           
 
Method Summary
 void close()
           
 boolean isDataAvailable()
           
 boolean readPacket(MessageStream actorStream)
          Reads the next HMTP packet from the stream, returning false on end of file.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HmtpWebSocketReader

public HmtpWebSocketReader(java.io.InputStream is)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readPacket

public boolean readPacket(MessageStream actorStream)
                   throws java.io.IOException
Reads the next HMTP packet from the stream, returning false on end of file.

Throws:
java.io.IOException

isDataAvailable

public boolean isDataAvailable()
                        throws java.io.IOException
Returns:
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

close

public void close()