public class WebSocketReader extends java.io.Reader implements WebSocketConstants
0x00 utf-8 data 0xff
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 |
|---|
WebSocketReader(FrameInputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLength() |
void |
init() |
void |
init(long length,
boolean isFinal) |
int |
read() |
int |
read(char[] buffer,
int offset,
int length) |
public WebSocketReader(FrameInputStream is) throws java.io.IOException
java.io.IOExceptionpublic void init()
throws java.io.IOException
java.io.IOExceptionpublic void init(long length,
boolean isFinal)
public long getLength()
public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOException