public class TextFrame extends FrameDraft76
| 构造器和说明 |
|---|
TextFrame(FrameHeader header,
byte[] body)
Instantiates a new text frame.
|
TextFrame(String str)
Instantiates a new text frame.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBuffer |
toByteBuffer()
convert frame to byte buffer.
|
String |
toString() |
getContents, getContentsLength, getHeader, readContents, readContents, setContents, setHeaderpublic TextFrame(String str)
str - the strpublic TextFrame(FrameHeader header, byte[] body)
header - the headerbody - the contentspublic ByteBuffer toByteBuffer()
FrametoByteBuffer 在类中 FrameCopyright © 2020. All rights reserved.