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.IOException
public void init() throws java.io.IOException
java.io.IOException
public void init(long length, boolean isFinal)
public long getLength()
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] buffer, int offset, int length) throws java.io.IOException
read
in class java.io.Reader
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.Reader
java.io.IOException