public class WebSocketMsg extends AbstractBody implements WebSocket.Message
charset, taskExecutor| 构造器和说明 |
|---|
WebSocketMsg(okio.ByteString bytes,
TaskExecutor taskExecutor,
Charset charset) |
WebSocketMsg(String text,
TaskExecutor taskExecutor,
Charset charset) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isText()
判断是文本消息还是二进制消息
|
byte[] |
toBytes() |
InputStream |
toByteStream() |
okio.ByteString |
toByteString()
will be removed in next version
|
Reader |
toCharStream() |
String |
toString() |
convertingStream, doToBean, toArray, toBean, toBean, toBean, toList, toMapperpublic WebSocketMsg(String text, TaskExecutor taskExecutor, Charset charset)
public WebSocketMsg(okio.ByteString bytes,
TaskExecutor taskExecutor,
Charset charset)
public boolean isText()
WebSocket.MessageisText 在接口中 WebSocket.Messagepublic okio.ByteString toByteString()
ToabletoByteString 在接口中 Toablepublic Reader toCharStream()
toCharStream 在接口中 Toablepublic InputStream toByteStream()
toByteStream 在接口中 ToableCopyright © 2025 zhouxu. All rights reserved.