Class BinaryData
java.lang.Object
org.simpleframework.http.socket.BinaryData
- All Implemented Interfaces:
Data
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BinaryData
public BinaryData(byte[] data) Constructor for theBinaryDataobject. It requires an array of binary data that will be send within a frame.- Parameters:
data- the byte array representing the frame payload
-
-
Method Details
-
getBinary
-
getText
This returns the text payload that is to be sent with a frame. It contains no header information or meta data. Caution should be used with this method as binary payloads will encode to garbage when decoded as UTF-8.
-