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
Exception
protected static byte[] encode(byte[] msg, int rsv, boolean fin, boolean maskPayload) throws Exception
Exception
protected static byte[] encode(byte[] msg, int rsv, boolean fin, boolean maskPayload, byte opcode) throws Exception
Exception
public static void applyMask(byte[] frame, int startIndex, int endIndex, byte[] mask)
public boolean isCloseOpcodeReceived()
Copyright © 2016. All Rights Reserved.