| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | TextMessage(CharSequence
the non-null payload payload)Create a new text WebSocket message from the given CharSequence payload. |
| public | TextMessage(byte[]
the non-null payload payload)Create a new text WebSocket message from the given byte[]. |
| public | TextMessage(CharSequence
the non-null payload payload, boolean whether this the last part of a series of partial messages isLast)Create a new text WebSocket message with the given payload representing the full or partial message content. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public int | getPayloadLength()
Implements org. Return the number of bytes contained in the message. |
| protected String | toStringPayload()
Implements abstract org.
|
| bytes | back to summary |
|---|---|
| private final byte[] bytes
| |
| TextMessage | back to summary |
|---|---|
| public TextMessage(CharSequence payload) Create a new text WebSocket message from the given CharSequence payload.
| |
| TextMessage | back to summary |
|---|---|
| public TextMessage(byte[] payload) Create a new text WebSocket message from the given byte[]. It is assumed the byte array can be encoded into an UTF-8 String.
| |
| TextMessage | back to summary |
|---|---|
| public TextMessage(CharSequence payload, boolean isLast) Create a new text WebSocket message with the given payload representing the
full or partial message content. When the
| |
| asBytes | back to summary |
|---|---|
| public byte[] asBytes() | |
| getPayloadLength | back to summary |
|---|---|
| public int getPayloadLength() Implements org. Doc from org. Return the number of bytes contained in the message.
| |
| toStringPayload | back to summary |
|---|---|
| protected String toStringPayload() Implements abstract org.
| |