com.caucho.hmtp
Class HmtpReader
java.lang.Object
com.caucho.hmtp.HmtpReader
public class HmtpReader
- extends java.lang.Object
HmtpReader stream handles client packets received from the server.
Method Summary |
void |
close()
|
void |
init(java.io.InputStream is)
|
boolean |
isDataAvailable()
Returns true if buffered read data is already available, i.e. |
boolean |
readPacket(java.io.InputStream is,
MessageStream actorStream)
Reads the next HMTP packet from the stream, returning false on
end of file. |
void |
setId(java.lang.String id)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HmtpReader
public HmtpReader()
HmtpReader
public HmtpReader(java.io.InputStream is)
setId
public void setId(java.lang.String id)
init
public void init(java.io.InputStream is)
isDataAvailable
public boolean isDataAvailable()
- Returns true if buffered read data is already available, i.e.
the read stream will not block.
readPacket
public boolean readPacket(java.io.InputStream is,
MessageStream actorStream)
throws java.io.IOException
- Reads the next HMTP packet from the stream, returning false on
end of file.
- Throws:
java.io.IOException
close
public void close()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object