com.caucho.jsmp
Class JsmpReader
java.lang.Object
com.caucho.jsmp.JsmpReader
public class JsmpReader
- extends java.lang.Object
JmtpReader stream handles client packets received from the server.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JsmpReader
public JsmpReader()
JsmpReader
public JsmpReader(java.io.InputStream is)
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