| Access | Constructor and Description |
|---|---|
| public | BinaryMessage(ByteBuffer
the non-null payload payload)Create a new binary WebSocket message with the given ByteBuffer payload. |
| public | BinaryMessage(ByteBuffer
the non-null payload payload, boolean if the message is the last of a series of partial messages isLast)Create a new binary WebSocket message with the given payload representing the full or partial message content. |
| public | BinaryMessage(byte[]
a non-null payload; note that this value is not copied so care
must be taken not to modify the array. payload)Create a new binary WebSocket message with the given byte[] payload. |
| public | BinaryMessage(byte[]
a non-null payload; note that this value is not copied so care
must be taken not to modify the array. payload, boolean if the message is the last of a series of partial messages isLast)Create a new binary WebSocket message with the given byte[] payload representing the full or partial message content. |
| public | BinaryMessage(byte[]
a non-null payload; note that this value is not copied so care
must be taken not to modify the array. payload, int the offset into the array where the payload starts offset, int the length of the array considered for the payload length, boolean if the message is the last of a series of partial messages isLast)Create a new binary WebSocket message by wrapping an existing byte array. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getPayloadLength()
Implements org. Return the number of bytes contained in the message. |
| protected String | toStringPayload()
Implements abstract org.
|
| BinaryMessage | back to summary |
|---|---|
| public BinaryMessage(ByteBuffer payload) Create a new binary WebSocket message with the given ByteBuffer payload.
| |
| BinaryMessage | back to summary |
|---|---|
| public BinaryMessage(ByteBuffer payload, boolean isLast) Create a new binary WebSocket message with the given payload representing the
full or partial message content. When the
| |
| BinaryMessage | back to summary |
|---|---|
| public BinaryMessage(byte[] payload) Create a new binary WebSocket message with the given byte[] payload.
| |
| BinaryMessage | back to summary |
|---|---|
| public BinaryMessage(byte[] payload, boolean isLast) Create a new binary WebSocket message with the given byte[] payload representing
the full or partial message content. When the
| |
| BinaryMessage | back to summary |
|---|---|
| public BinaryMessage(byte[] payload, int offset, int length, boolean isLast) Create a new binary WebSocket message by wrapping an existing byte array.
| |
| 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.
| |