public class MessageReader extends InputStreamReader implements MessageAppender
In compliance to the WebSocket spec, this reader always uses the UTF8 Charset.
| Constructor and Description |
|---|
MessageReader(MessageInputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendFrame(ByteBuffer payload,
boolean isLast)
Append the frame payload to the message.
|
void |
messageComplete()
Notification that message is to be considered complete.
|
close, getEncoding, read, read, readypublic MessageReader(MessageInputStream stream)
public void appendFrame(ByteBuffer payload, boolean isLast) throws IOException
MessageAppenderappendFrame in interface MessageAppenderpayload - the frame payload to append.isLast - flag indicating if this is the last part of the message or not.IOException - if unable to append the frame payloadpublic void messageComplete()
MessageAppenderAny cleanup or final actions should be taken here.
messageComplete in interface MessageAppenderCopyright © 2010 - 2020 Adobe. All Rights Reserved