|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simpleframework.http.socket.BinaryData
public class BinaryData
The BinaryData object represents a binary payload for
a WebScoket frame. This can be used to send any type of data. If
however it is used to send text data then it is decoded as UTF-8.
DataFrame| Constructor Summary | |
|---|---|
BinaryData(byte[] data)
Constructor for the BinaryData 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 BinaryData(byte[] data)
BinaryData object. It requires
an array of binary data that will be send within a frame.
data - the byte array 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 | |||||||||