Class TextData
java.lang.Object
org.simpleframework.http.socket.TextData
- All Implemented Interfaces:
Data
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TextData
Constructor for theTextDataobject. It requires an text string that will be sent as UTF-8 within a frame.- Parameters:
data- the text string 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.
-