| Constructor and Description |
|---|
WebSocketCodec(boolean maskedPayload,
boolean allowExtensions) |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyMask(byte[] frame,
int startIndex,
int endIndex,
byte[] mask) |
byte[] |
decode(InputStream is) |
protected static byte[] |
encode(byte[] msg,
int rsv,
boolean fin,
boolean maskPayload) |
protected static byte[] |
encode(byte[] msg,
int rsv,
boolean fin,
boolean maskPayload,
byte opcode) |
boolean |
isCloseOpcodeReceived() |
public WebSocketCodec(boolean maskedPayload,
boolean allowExtensions)
public byte[] decode(InputStream is) throws Exception
Exceptionprotected static byte[] encode(byte[] msg,
int rsv,
boolean fin,
boolean maskPayload)
throws Exception
Exceptionprotected static byte[] encode(byte[] msg,
int rsv,
boolean fin,
boolean maskPayload,
byte opcode)
throws Exception
Exceptionpublic static void applyMask(byte[] frame,
int startIndex,
int endIndex,
byte[] mask)
public boolean isCloseOpcodeReceived()
Copyright © 2018. All Rights Reserved.