Class BinaryFrame

  • All Implemented Interfaces:
    Frame

    @Deprecated(since="2021-05-27")
    public class BinaryFrame
    extends DataFrame
    Deprecated.
    • Constructor Detail

      • BinaryFrame

        public BinaryFrame()
        Deprecated.
    • Method Detail

      • setPayload

        public BinaryFrame setPayload​(java.nio.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.
      • setPayload

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