com.caucho.jsmp
Class JsmpReader

java.lang.Object
  extended by com.caucho.jsmp.JsmpReader

public class JsmpReader
extends java.lang.Object

JmtpReader stream handles client packets received from the server.


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

Constructor Detail

JsmpReader

public JsmpReader()

JsmpReader

public JsmpReader(java.io.InputStream is)
Method Detail

init

public void init(java.io.InputStream is)

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

readString

public java.lang.String readString()
                            throws java.io.IOException
Throws:
java.io.IOException

startPacket

public boolean startPacket()
                    throws java.io.IOException
Throws:
java.io.IOException

close

public void close()

getPayloadClass

protected java.lang.Class getPayloadClass(java.lang.String type)

toString

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