public interface WebSocketFrame
Modifier and Type | Interface and Description |
---|---|
static class |
WebSocketFrame.FrameType
List of all frame types.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBinary()
Returns
true if and only if the content of this frame is an
arbitrary binary data. |
boolean |
isFinalFrame()
Returns
true if this is the final frame. |
boolean |
isText()
Returns
true if and only if the content of this frame is a string
encoded in UTF-8. |
java.lang.String |
textData()
Converts the content of this frame into a UTF-8 string and returns the
converted string.
|
java.lang.String |
toString()
Returns the string representation of this frame.
|
WebSocketFrame.FrameType |
type() |
WebSocketFrame.FrameType type()
boolean isText()
true
if and only if the content of this frame is a string
encoded in UTF-8.boolean isBinary()
true
if and only if the content of this frame is an
arbitrary binary data.java.lang.String textData()
java.lang.String toString()
textData()
.toString
in class java.lang.Object
boolean isFinalFrame()
true
if this is the final frame. This should be true
unless a number of
coninuation frames are expected to follow this frame.