Class SimpleBinaryMessage
java.lang.Object
org.eclipse.jetty.websocket.common.message.SimpleBinaryMessage
- All Implemented Interfaces:
MessageAppender
- Direct Known Subclasses:
BinaryWholeMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprotected booleanprivate final EventDriverprotected org.eclipse.jetty.util.ByteArrayOutputStream2private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendFrame(ByteBuffer payload, boolean isLast) Append the frame payload to the message.voidNotification that message is to be considered complete.
-
Field Details
-
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
-
onEvent
-
out
protected org.eclipse.jetty.util.ByteArrayOutputStream2 out -
size
private int size -
finished
protected boolean finished
-
-
Constructor Details
-
SimpleBinaryMessage
-
-
Method Details
-
appendFrame
Description copied from interface:MessageAppenderAppend the frame payload to the message.- Specified by:
appendFramein interfaceMessageAppender- Parameters:
payload- the frame payload to append.isLast- flag indicating if this is the last part of the message or not.- Throws:
IOException- if unable to append the frame payload
-
messageComplete
public void messageComplete()Description copied from interface:MessageAppenderNotification that message is to be considered complete.Any cleanup or final actions should be taken here.
- Specified by:
messageCompletein interfaceMessageAppender
-