public class WebSocketInputStream extends java.io.InputStream implements WebSocketConstants
+-+------+---------+-+---------+
|F|xxx(3)|opcode(4)|R|len(7) |
+-+------+---------+-+---------+
OPCODES
0 - cont
1 - close
2 - ping
3 - pong
4 - text
5 - 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 |
---|
WebSocketInputStream(FrameInputStream is) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
long |
getLength() |
void |
init() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
long |
skip(long length) |
boolean |
startBinaryMessage() |
public WebSocketInputStream(FrameInputStream is)
public void init()
public boolean startBinaryMessage() throws java.io.IOException
java.io.IOException
public long getLength()
public int available()
available
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long length) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException