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.IOExceptionpublic long getLength()
public int available()
available in class java.io.InputStreampublic 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.IOExceptionpublic long skip(long length)
          throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic void close()
           throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException