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 |
replace(io.netty.buffer.ByteBuf content) |
BinaryWebSocketFrame |
retain() |
BinaryWebSocketFrame |
retain(int increment) |
BinaryWebSocketFrame |
retainedDuplicate() |
BinaryWebSocketFrame |
touch() |
BinaryWebSocketFrame |
touch(Object hint) |
isFinalFragment, rsv, toStringpublic 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.ByteBufHoldercopy in class WebSocketFramepublic BinaryWebSocketFrame duplicate()
duplicate in interface io.netty.buffer.ByteBufHolderduplicate in class WebSocketFramepublic BinaryWebSocketFrame retainedDuplicate()
retainedDuplicate in interface io.netty.buffer.ByteBufHolderretainedDuplicate in class WebSocketFramepublic BinaryWebSocketFrame replace(io.netty.buffer.ByteBuf content)
replace in interface io.netty.buffer.ByteBufHolderreplace in class WebSocketFramepublic BinaryWebSocketFrame retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedretain in class WebSocketFramepublic BinaryWebSocketFrame retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedretain in class WebSocketFramepublic BinaryWebSocketFrame touch()
touch in interface io.netty.buffer.ByteBufHoldertouch in interface io.netty.util.ReferenceCountedtouch in class WebSocketFramepublic BinaryWebSocketFrame touch(Object hint)
touch in interface io.netty.buffer.ByteBufHoldertouch in interface io.netty.util.ReferenceCountedtouch in class WebSocketFrameCopyright © 2008–2017 The Netty Project. All rights reserved.