|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simpleframework.http.socket.TextData
public class TextData
The TextData object represents a text payload for
a WebScoket frame. This can be used to send any type of data. If
however it is used to send binary data then it is encoded as UTF-8.
DataFrame| Constructor Summary | |
|---|---|
TextData(String data)
Constructor for the TextData object. |
|
| Method Summary | |
|---|---|
byte[] |
getBinary()
This returns the binary payload that is to be sent with a frame. |
String |
getText()
This returns the text payload that is to be sent with a frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextData(String data)
TextData object. It requires
an text string that will be sent as UTF-8 within a frame.
data - the text string representing the frame payload| Method Detail |
|---|
public byte[] getBinary()
getBinary in interface Datapublic String getText()
getText in interface Data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||