public abstract class FramedataImpl1 extends java.lang.Object implements Framedata
Framedata.Opcode| 构造器和说明 |
|---|
FramedataImpl1(Framedata.Opcode op)
Constructor for a FramedataImpl without any attributes set apart from the opcode
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
append(Framedata nextframe)
Appends an additional frame to the current frame
This methods does not override the opcode, but does override the fin
|
static FramedataImpl1 |
get(Framedata.Opcode opcode)
Get a frame with a specific opcode
|
Framedata.Opcode |
getOpcode()
Defines the interpretation of the "Payload data".
|
java.nio.ByteBuffer |
getPayloadData()
The "Payload data" which was sent in this frame
|
boolean |
getTransfereMasked()
Defines whether the "Payload data" is masked.
|
boolean |
isFin()
Indicates that this is the final fragment in a message.
|
boolean |
isRSV1()
Indicates that this frame has the rsv1 bit set.
|
boolean |
isRSV2()
Indicates that this frame has the rsv2 bit set.
|
boolean |
isRSV3()
Indicates that this frame has the rsv3 bit set.
|
abstract void |
isValid()
Check if the frame is valid due to specification
|
void |
setFin(boolean fin)
Set the fin of this frame to the provided boolean
|
void |
setPayload(java.nio.ByteBuffer payload)
Set the payload of this frame to the provided payload
|
void |
setRSV1(boolean rsv1)
Set the rsv1 of this frame to the provided boolean
|
void |
setRSV2(boolean rsv2)
Set the rsv2 of this frame to the provided boolean
|
void |
setRSV3(boolean rsv3)
Set the rsv3 of this frame to the provided boolean
|
void |
setTransferemasked(boolean transferemasked)
Set the tranferemask of this frame to the provided boolean
|
java.lang.String |
toString() |
public FramedataImpl1(Framedata.Opcode op)
op - the opcode to usepublic abstract void isValid()
throws InvalidDataException
InvalidDataException - thrown if the frame is not a valid framepublic boolean isRSV1()
Framedatapublic boolean isRSV2()
Framedatapublic boolean isRSV3()
Framedatapublic boolean isFin()
Framedatapublic Framedata.Opcode getOpcode()
Framedatapublic boolean getTransfereMasked()
FramedatagetTransfereMasked 在接口中 Framedatapublic java.nio.ByteBuffer getPayloadData()
FramedatagetPayloadData 在接口中 Framedatapublic void append(Framedata nextframe)
Framedatapublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic void setPayload(java.nio.ByteBuffer payload)
payload - the payload which is to setpublic void setFin(boolean fin)
fin - true if fin has to be setpublic void setRSV1(boolean rsv1)
rsv1 - true if fin has to be setpublic void setRSV2(boolean rsv2)
rsv2 - true if fin has to be setpublic void setRSV3(boolean rsv3)
rsv3 - true if fin has to be setpublic void setTransferemasked(boolean transferemasked)
transferemasked - true if transferemasked has to be setpublic static FramedataImpl1 get(Framedata.Opcode opcode)
opcode - the opcode representing the frame