|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.caucho.remote.websocket.WebSocketInputStream
com.caucho.remote.websocket.WebSocketMaskedInputStream
public class WebSocketMaskedInputStream
WebSocketInputStream reads a single WebSocket packet.
+-+------+---------+-+---------+
|F|xxx(3)|opcode(4)|M|len(7) |
+-+------+---------+-+---------+
OPCODES
0 - cont
1 - text
2 - binary
Field Summary |
---|
Fields inherited from interface com.caucho.remote.websocket.WebSocketConstants |
---|
CLOSE_ERROR, CLOSE_MESSAGE_TOO_BIG, CLOSE_OK, CLOSE_UTF8, FLAG_FIN, FLAG_MASK, MASK_OPCODE, OP_BINARY, OP_CLOSE, OP_CONT, OP_PING, OP_PONG, OP_TEXT, VERSION |
Constructor Summary | |
---|---|
WebSocketMaskedInputStream(FrameInputStream is)
|
Method Summary | |
---|---|
boolean |
readFrameHeader()
|
boolean |
startBinaryMessage()
|
Methods inherited from class com.caucho.remote.websocket.WebSocketInputStream |
---|
available, close, getLength, init, read, read, skip |
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, read, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebSocketMaskedInputStream(FrameInputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean startBinaryMessage() throws java.io.IOException
startBinaryMessage
in class WebSocketInputStream
java.io.IOException
public boolean readFrameHeader() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |