Class BinaryFrame

    • Constructor Detail

      • BinaryFrame

        public BinaryFrame()
        Deprecated.
    • Method Detail

      • setPayload

        public BinaryFrame setPayload​(ByteBuffer buf)
        Deprecated.
        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)
        Deprecated.