public class BinaryFrame extends FrameDraft76
| 限定符 | 构造器和说明 |
|---|---|
|
BinaryFrame(byte[] bodyData)
Instantiates a new binary frame.
|
protected |
BinaryFrame(FrameHeader header,
byte[] bodyData)
Instantiates a new binary frame.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 FrameCopyright © 2020. All rights reserved.