public class Frame
extends java.lang.Object
| Constructor and Description |
|---|
Frame(boolean fin,
Opcode opcode,
int rsv,
int payloadLength) |
Frame(Opcode opcode,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getMask() |
Opcode |
getOpcode() |
byte[] |
getPayload() |
int |
getPayloadLength() |
int |
getRsv() |
boolean |
isControl() |
boolean |
isFin() |
void |
setMask(byte[] mask) |
void |
setPayload(byte[] payload) |
void |
setRsv(int rsv) |
void |
unmask() |
public Frame(boolean fin,
Opcode opcode,
int rsv,
int payloadLength)
public Frame(Opcode opcode, byte[] payload)
public boolean isFin()
public int getRsv()
public void setRsv(int rsv)
public Opcode getOpcode()
public boolean isControl()
public int getPayloadLength()
public byte[] getMask()
public void setMask(byte[] mask)
public byte[] getPayload()
public void setPayload(byte[] payload)
public void unmask()