Class ReadableChunkedChannel

    • Field Detail

      • chunkState

        private volatile ChunkState chunkState
        Deprecated.
        The chunk state.
      • lineBuilder

        private final java.lang.StringBuilder lineBuilder
        Deprecated.
        The line builder to parse chunk size or trailer.
      • lineBuilderState

        private volatile BufferState lineBuilderState
        Deprecated.
        The line builder state.
      • remainingChunkSize

        private volatile int remainingChunkSize
        Deprecated.
        The remaining chunk size that should be read from the source channel.
    • Constructor Detail

      • ReadableChunkedChannel

        public ReadableChunkedChannel​(CompletionListener completionListener,
                                      Buffer buffer,
                                      ReadableSelectionChannel source,
                                      WakeupListener wakeupListener)
        Deprecated.
        Constructor.
        Parameters:
        completionListener - The listener to callback upon reading completion.
        buffer - The source byte buffer, typically remaining from previous read processing.
        source - The source channel.
        wakeupListener - The wakeup listener that will be notified.
    • Method Detail

      • clearLineBuilder

        protected void clearLineBuilder()
        Deprecated.
        Clears the line builder and adjust its state.
      • getChunkState

        protected ChunkState getChunkState()
        Deprecated.
        Returns the chunk state.
        Returns:
        The chunk state.
      • getLineBuilder

        protected java.lang.StringBuilder getLineBuilder()
        Deprecated.
        Returns the line builder to parse chunk size or trailer.
        Returns:
        The line builder to parse chunk size or trailer.
      • getLineBuilderState

        protected BufferState getLineBuilderState()
        Deprecated.
        Returns the line builder state.
        Returns:
        The line builder state.
      • getRemainingChunkSize

        protected int getRemainingChunkSize()
        Deprecated.
        Returns the remaining chunk size that should be read from the source channel.
        Returns:
        The remaining chunk size that should be read from the source channel.
      • onDrain

        public int onDrain​(Buffer buffer,
                           int maxDrained,
                           java.lang.Object... args)
                    throws java.io.IOException
        Deprecated.
        Drains the byte buffer.
        Specified by:
        onDrain in interface BufferProcessor
        Overrides:
        onDrain in class ReadableBufferedChannel
        Parameters:
        buffer - The IO buffer to drain.
        maxDrained - The maximum number of bytes drained by this call.
        args - The optional arguments to pass back to the callbacks.
        Returns:
        The number of "functional" bytes drained.
        Throws:
        java.io.IOException
      • setChunkState

        protected void setChunkState​(ChunkState chunkState)
        Deprecated.
        Sets the chunk state.
        Parameters:
        chunkState - The chunk state.
      • setLineBuilderState

        protected void setLineBuilderState​(BufferState lineBuilderState)
        Deprecated.
        Sets the line builder state.
        Parameters:
        lineBuilderState - The line builder state.
      • setRemainingChunkSize

        protected void setRemainingChunkSize​(int remainingChunkSize)
        Deprecated.
        Sets the remaining chunk size that should be read from the source channel.
        Parameters:
        remainingChunkSize - The remaining chunk size that should be read from the source channel.