GeezerVison is showing netty.io — BinaryWebSocketFrame (Netty API Reference (4.1.141.Final))
Class BinaryWebSocketFrame
-
Constructor Summary
Constructors
Constructor
Description
Creates a new empty binary frame.
Creates a new binary frame with the specified binary data and the final fragment flag.
Creates a new binary frame with the specified binary data.
-
Method Summary
Modifier and Type
Method
Description
Returns a new
ByteBufHolder which contains the specified
content.
Increases the reference count by 1.
Increases the reference count by the specified increment.
Records the current access location of this object for debugging purposes.
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
Methods inherited from class WebSocketFrame
isFinalFragment, rsv, toString
Modifier and Type
Method
Description
boolean
Flag to indicate if this frame is the final fragment in a message.
int
Bits used for extensions to the standard.
content, contentToString, equals, hashCode, refCnt, release, release
Modifier and Type
Method
Description
boolean
This implementation of the equals operation is restricted to
work only with instances of the same class.
int
int
Returns the reference count of this object.
boolean
Decreases the reference count by 1 and deallocates this object if the reference count reaches at
0.
boolean
Decreases the reference count by the specified decrement and deallocates this object if the reference
count reaches at 0.
-
Constructor Details
-
BinaryWebSocketFrame
public BinaryWebSocketFrame()
Creates a new empty binary frame.
-
BinaryWebSocketFrame
public BinaryWebSocketFrame(ByteBuf binaryData)
Creates a new binary frame with the specified binary data. The final fragment flag is set to true.
- Parameters:
binaryData - the content of the frame.
-
BinaryWebSocketFrame
public BinaryWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new binary frame with the specified binary data and the final fragment flag.
- Parameters:
finalFragment - flag indicating if this frame is the final fragment
rsv - reserved bits used for protocol extensions
binaryData - the content of the frame.
-