Package org.java_websocket.framing
Interface Framedata
- 
- All Known Implementing Classes:
- BinaryFrame,- CloseFrame,- ContinuousFrame,- ControlFrame,- DataFrame,- FramedataImpl1,- PingFrame,- PongFrame,- TextFrame
 
 public interface FramedataThe interface for the frame
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classFramedata.OpcodeEnum which contains the different valid opcodes
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappend(Framedata nextframe)Appends an additional frame to the current frame This methods does not override the opcode, but does override the finFramedata.OpcodegetOpcode()Defines the interpretation of the "Payload data".ByteBuffergetPayloadData()The "Payload data" which was sent in this framebooleangetTransfereMasked()Defines whether the "Payload data" is masked.booleanisFin()Indicates that this is the final fragment in a message.booleanisRSV1()Indicates that this frame has the rsv1 bit set.booleanisRSV2()Indicates that this frame has the rsv2 bit set.booleanisRSV3()Indicates that this frame has the rsv3 bit set.
 
- 
- 
- 
Method Detail- 
isFinboolean isFin() Indicates that this is the final fragment in a message. The first fragment MAY also be the final fragment.- Returns:
- true, if this frame is the final fragment
 
 - 
isRSV1boolean isRSV1() Indicates that this frame has the rsv1 bit set.- Returns:
- true, if this frame has the rsv1 bit set
 
 - 
isRSV2boolean isRSV2() Indicates that this frame has the rsv2 bit set.- Returns:
- true, if this frame has the rsv2 bit set
 
 - 
isRSV3boolean isRSV3() Indicates that this frame has the rsv3 bit set.- Returns:
- true, if this frame has the rsv3 bit set
 
 - 
getTransfereMaskedboolean getTransfereMasked() Defines whether the "Payload data" is masked.- Returns:
- true, "Payload data" is masked
 
 - 
getOpcodeFramedata.Opcode getOpcode() Defines the interpretation of the "Payload data".- Returns:
- the interpretation as a Opcode
 
 - 
getPayloadDataByteBuffer getPayloadData() The "Payload data" which was sent in this frame- Returns:
- the "Payload data" as ByteBuffer
 
 - 
appendvoid append(Framedata nextframe) Appends an additional frame to the current frame This methods does not override the opcode, but does override the fin- Parameters:
- nextframe- the additional frame
 
 
- 
 
-