public class TextFrame extends FrameDraft76
| Constructor and Description |
|---|
TextFrame(FrameHeader header,
byte[] body)
Instantiates a new text frame.
|
TextFrame(String str)
Instantiates a new text frame.
|
| Modifier and Type | Method and Description |
|---|---|
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 in class FrameCopyright © 2021. All rights reserved.