Class BinaryFrame

  • All Implemented Interfaces:
    Frame

    public class BinaryFrame
    extends DataFrame
    • Constructor Detail

      • BinaryFrame

        public BinaryFrame()
    • Method Detail

      • setPayload

        public BinaryFrame setPayload​(java.nio.ByteBuffer buf)
        Description copied from class: WebSocketFrame
        Set the data payload.

        The provided buffer will be used as is, no copying of bytes performed.

        The provided buffer should be flipped and ready to READ from.

        Overrides:
        setPayload in class WebSocketFrame
        Parameters:
        buf - the bytebuffer to set
        Returns:
        the frame itself
      • setPayload

        public BinaryFrame setPayload​(byte[] buf)
      • setPayload

        public BinaryFrame setPayload​(java.lang.String payload)