public class TextWebSocketFrame extends WebSocketFrame
| 构造器和说明 |
|---|
TextWebSocketFrame()
Creates a new empty text frame.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
ChannelBuffer binaryData)
Creates a new text frame with the specified binary data.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
java.lang.String text)
Creates a new text frame with the specified text string.
|
TextWebSocketFrame(ChannelBuffer binaryData)
Creates a new text frame with the specified binary data.
|
TextWebSocketFrame(java.lang.String text)
Creates a new text frame with the specified text string.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getText()
Returns the text data in this frame
|
void |
setText(java.lang.String text)
Sets the string for this frame
|
java.lang.String |
toString() |
getBinaryData, getRsv, isFinalFragment, setBinaryData, setFinalFragment, setRsvpublic TextWebSocketFrame()
public TextWebSocketFrame(java.lang.String text)
text - String to put in the framepublic TextWebSocketFrame(ChannelBuffer binaryData)
binaryData - the content of the frame. Must be UTF-8 encodedpublic TextWebSocketFrame(boolean finalFragment,
int rsv,
java.lang.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,
ChannelBuffer 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 encoded