public class BinaryFrame extends FrameDraft76
| Modifier | Constructor and Description |
|---|---|
|
BinaryFrame(byte[] bodyData)
Instantiates a new binary frame.
|
protected |
BinaryFrame(FrameHeader header,
byte[] bodyData)
Instantiates a new binary frame.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
toByteBuffer()
convert frame to byte buffer.
|
getContents, getContentsLength, getHeader, readContents, readContents, setContents, setHeaderpublic BinaryFrame(byte[] bodyData)
bodyData - the contents dataprotected BinaryFrame(FrameHeader header, byte[] bodyData)
header - the headerbodyData - the contents datapublic ByteBuffer toByteBuffer()
FrametoByteBuffer in class FrameCopyright © 2021. All rights reserved.