|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Data
The Data interface represents a payload for a WebScoket
frame. It can hold either binary data or text data. For performance
binary frames are a better choice as all text frames need to be
encoded as UTF-8 from the native UCS2 format.
DataFrame| 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. |
| Method Detail |
|---|
byte[] getBinary()
String getText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||