public class MaskedFrameInputStream extends FrameInputStream
+-+------+---------+-+---------+
|F|xxx(3)|opcode(4)|R|len(7) |
+-+------+---------+-+---------+
OPCODES
0 - cont
1 - text
2 - binary
8 - close
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 |
|---|
MaskedFrameInputStream() |
| Modifier and Type | Method and Description |
|---|---|
long |
getLength() |
byte[] |
getMask() |
int |
getOpcode() |
void |
init(WebSocketContext cxt,
java.io.InputStream is) |
boolean |
isFinal() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
protected boolean |
readFrameHeaderImpl() |
closeError, getContext, handleFrame, initReader, readFrameHeader, skipToFrameEndpublic void init(WebSocketContext cxt, java.io.InputStream is)
init in class FrameInputStreampublic int getOpcode()
getOpcode in class FrameInputStreampublic boolean isFinal()
isFinal in class FrameInputStreampublic long getLength()
getLength in class FrameInputStreampublic final byte[] getMask()
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionprotected boolean readFrameHeaderImpl()
throws java.io.IOException
readFrameHeaderImpl in class FrameInputStreamjava.io.IOException