public class BinaryWebSocketFrame extends WebSocketFrame
Constructor and Description |
---|
BinaryWebSocketFrame()
Creates a new empty binary frame.
|
BinaryWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData)
Creates a new binary frame with the specified binary data and the final fragment flag.
|
BinaryWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new binary frame with the specified binary data.
|
Modifier and Type | Method and Description |
---|---|
BinaryWebSocketFrame |
copy() |
BinaryWebSocketFrame |
duplicate() |
BinaryWebSocketFrame |
retain() |
BinaryWebSocketFrame |
retain(int increment) |
isFinalFragment, rsv, toString
public BinaryWebSocketFrame()
public BinaryWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
binaryData
- the content of the frame.public BinaryWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData)
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionsbinaryData
- the content of the frame.public BinaryWebSocketFrame copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in class WebSocketFrame
public BinaryWebSocketFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in class WebSocketFrame
public BinaryWebSocketFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public BinaryWebSocketFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
Copyright © 2008–2013 The Netty Project. All rights reserved.