public class WebSocketMaskedInputStream extends WebSocketInputStream
+-+------+---------+-+---------+
|F|xxx(3)|opcode(4)|M|len(7) |
+-+------+---------+-+---------+
OPCODES
0 - cont
1 - text
2 - binary
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 and Description |
---|
WebSocketMaskedInputStream(FrameInputStream is) |
Modifier and Type | Method and Description |
---|---|
boolean |
readFrameHeader() |
boolean |
startBinaryMessage() |
public WebSocketMaskedInputStream(FrameInputStream is) throws java.io.IOException
java.io.IOException
public boolean startBinaryMessage() throws java.io.IOException
startBinaryMessage
in class WebSocketInputStream
java.io.IOException
public boolean readFrameHeader() throws java.io.IOException
java.io.IOException