Top Description Methods
org.java_websocket.framing

public Interface Framedata

Known Direct Implementers
org.java_websocket.framing.FramedataImpl1
Imports
java.nio.ByteBuffer, org.java_websocket.enums.Opcode

The interface for the frame

Method Summary

Modifier and TypeMethod and Description
public void
append(Framedata
the additional frame
nextframe
)

Appends an additional frame to the current frame

This methods does not override the opcode, but does override the fin

public Opcode

Returns:

the interpretation as a Opcode
getOpcode
()

Defines the interpretation of the "Payload data".

public ByteBuffer

Returns:

the "Payload data" as ByteBuffer
getPayloadData
()

The "Payload data" which was sent in this frame

public boolean

Returns:

true, "Payload data" is masked
getTransfereMasked
()

Defines whether the "Payload data" is masked.

public boolean

Returns:

true, if this frame is the final fragment
isFin
()

Indicates that this is the final fragment in a message.

public boolean

Returns:

true, if this frame has the rsv1 bit set
isRSV1
()

Indicates that this frame has the rsv1 bit set.

public boolean

Returns:

true, if this frame has the rsv2 bit set
isRSV2
()

Indicates that this frame has the rsv2 bit set.

public boolean

Returns:

true, if this frame has the rsv3 bit set
isRSV3
()

Indicates that this frame has the rsv3 bit set.

Method Detail

appendback to summary
public void 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:Framedata

the additional frame

getOpcodeback to summary
public Opcode getOpcode()

Defines the interpretation of the "Payload data".

Returns:Opcode

the interpretation as a Opcode

getPayloadDataback to summary
public ByteBuffer getPayloadData()

The "Payload data" which was sent in this frame

Returns:ByteBuffer

the "Payload data" as ByteBuffer

getTransfereMaskedback to summary
public boolean getTransfereMasked()

Defines whether the "Payload data" is masked.

Returns:boolean

true, "Payload data" is masked

isFinback to summary
public boolean isFin()

Indicates that this is the final fragment in a message. The first fragment MAY also be the final fragment.

Returns:boolean

true, if this frame is the final fragment

isRSV1back to summary
public boolean isRSV1()

Indicates that this frame has the rsv1 bit set.

Returns:boolean

true, if this frame has the rsv1 bit set

isRSV2back to summary
public boolean isRSV2()

Indicates that this frame has the rsv2 bit set.

Returns:boolean

true, if this frame has the rsv2 bit set

isRSV3back to summary
public boolean isRSV3()

Indicates that this frame has the rsv3 bit set.

Returns:boolean

true, if this frame has the rsv3 bit set