Class BodyChunkedInput

  • All Implemented Interfaces:
    io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>

    public class BodyChunkedInput
    extends Object
    implements io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
    Adapts a Body to Netty's ChunkedInput.
    • Method Detail

      • readChunk

        @Deprecated
        public io.netty.buffer.ByteBuf readChunk​(io.netty.channel.ChannelHandlerContext ctx)
                                          throws Exception
        Deprecated.
        Specified by:
        readChunk in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
        Throws:
        Exception
      • readChunk

        public io.netty.buffer.ByteBuf readChunk​(io.netty.buffer.ByteBufAllocator alloc)
                                          throws Exception
        Specified by:
        readChunk in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
        Throws:
        Exception
      • isEndOfInput

        public boolean isEndOfInput()
        Specified by:
        isEndOfInput in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
      • close

        public void close()
                   throws Exception
        Specified by:
        close in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
        Throws:
        Exception
      • length

        public long length()
        Specified by:
        length in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
      • progress

        public long progress()
        Specified by:
        progress in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>