Class WebSocketChunkedInput

java.lang.Object
io.netty.handler.codec.http.websocketx.WebSocketChunkedInput
All Implemented Interfaces:
ChunkedInput<WebSocketFrame>

public final class WebSocketChunkedInput extends java.lang.Object implements ChunkedInput<WebSocketFrame>
A ChunkedInput that fetches data chunk by chunk for use with WebSocket chunked transfers.

Each chunk from the input data will be wrapped within a ContinuationWebSocketFrame. At the end of the input data, ContinuationWebSocketFrame with finalFragment will be written.

  • Field Details

  • Constructor Details

    • WebSocketChunkedInput

      public WebSocketChunkedInput(ChunkedInput<ByteBuf> input)
      Creates a new instance using the specified input.
      Parameters:
      input - ChunkedInput containing data to write
    • WebSocketChunkedInput

      public WebSocketChunkedInput(ChunkedInput<ByteBuf> input, int rsv)
      Creates a new instance using the specified input.
      Parameters:
      input - ChunkedInput containing data to write
      rsv - RSV1, RSV2, RSV3 used for extensions
      Throws:
      java.lang.NullPointerException - if input is null
  • Method Details