public class BinaryWebSocketFrame extends WebSocketFrame
构造器和说明 |
---|
BinaryWebSocketFrame()
Creates a new empty binary frame.
|
BinaryWebSocketFrame(boolean finalFragment,
int rsv,
ChannelBuffer binaryData)
Creates a new binary frame with the specified binary data and the final fragment flag.
|
BinaryWebSocketFrame(ChannelBuffer binaryData)
Creates a new binary frame with the specified binary data.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
toString() |
getBinaryData, getRsv, isFinalFragment, setBinaryData, setFinalFragment, setRsv
public BinaryWebSocketFrame()
public BinaryWebSocketFrame(ChannelBuffer binaryData)
binaryData
- the content of the frame.public BinaryWebSocketFrame(boolean finalFragment, int rsv, ChannelBuffer binaryData)
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionsbinaryData
- the content of the frame.