Class BinaryWebSocketFrame

java.lang.Object
io.netty.buffer.DefaultByteBufHolder
io.netty.handler.codec.http.websocketx.WebSocketFrame
io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted

public class BinaryWebSocketFrame extends WebSocketFrame
Web Socket frame containing binary data.
  • Constructor Details

    • BinaryWebSocketFrame

      public BinaryWebSocketFrame()
      Creates a new empty binary frame.
    • BinaryWebSocketFrame

      public BinaryWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
      Creates a new binary frame with the specified binary data. The final fragment flag is set to true.
      Parameters:
      binaryData - the content of the frame.
    • BinaryWebSocketFrame

      public BinaryWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData)
      Creates a new binary frame with the specified binary data and the final fragment flag.
      Parameters:
      finalFragment - flag indicating if this frame is the final fragment
      rsv - reserved bits used for protocol extensions
      binaryData - the content of the frame.
  • Method Details