public class TextWebSocketFrame extends WebSocketFrame
| Constructor and Description |
|---|
TextWebSocketFrame()
Creates a new empty text frame.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData)
Creates a new text frame with the specified binary data.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
String text)
Creates a new text frame with the specified text string.
|
TextWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new text frame with the specified binary data.
|
TextWebSocketFrame(String text)
Creates a new text frame with the specified text string.
|
| Modifier and Type | Method and Description |
|---|---|
TextWebSocketFrame |
copy() |
String |
text()
Returns the text data in this frame
|
isFinalFragment, rsv, toStringpublic TextWebSocketFrame()
public TextWebSocketFrame(String text)
text - String to put in the framepublic TextWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
binaryData - the content of the frame. Must be UTF-8 encodedpublic TextWebSocketFrame(boolean finalFragment,
int rsv,
String text)
finalFragment - flag indicating if this frame is the final fragmentrsv - reserved bits used for protocol extensionstext - String to put in the framepublic TextWebSocketFrame(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. Must be UTF-8 encodedpublic String text()
public TextWebSocketFrame copy()
copy in interface io.netty.buffer.ByteBufHoldercopy in class WebSocketFrameCopyright © 2008-2013 The Netty Project. All Rights Reserved.