@Test public void testWrappedReturnNull() throws Exception { HttpChunkedInput input = new HttpChunkedInput(new ChunkedInput<ByteBuf>() { @Override public boolean isEndOfInput() throws Exception { return false; } @Override public void close() throws Exception { } @Override public ByteBuf readChunk(ChannelHandlerContext ctx) throws Exception { return null; } @Override public ByteBuf readChunk(ByteBufAllocator allocator) throws Exception { return null; } @Override public long length() { return 0; } @Override public long progress() { return 0; } }); assertNull(input.readChunk(ByteBufAllocator.DEFAULT)); }
@Deprecated @Override public HttpContent readChunk(ChannelHandlerContext ctx) throws Exception { return readChunk(ctx.alloc()); }
HttpChunkedInput implements ChunkedInput<HttpContent> { @Deprecated @Override public HttpContent readChunk(ChannelHandlerContext ctx) throws Exception { return readChunk(ctx.alloc()); } }
HttpChunkedInput implements ChunkedInput<HttpContent> { @Deprecated @Override public HttpContent readChunk(ChannelHandlerContext ctx) throws Exception { return readChunk(ctx.alloc()); } HttpChunkedInput(ChunkedInput<ByteBuf> input);  HttpChunkedInput(ChunkedInput<ByteBuf> input, LastHttpContent lastHttpContent); }
HttpChunkedInput implements ChunkedInput<HttpContent> { @Deprecated @Override public HttpContent readChunk(ChannelHandlerContext ctx) throws Exception { return readChunk(ctx.alloc()); } HttpChunkedInput(ChunkedInput<ByteBuf> input);  HttpChunkedInput(ChunkedInput<ByteBuf> input, LastHttpContent lastHttpContent); @Override boolean isEndOfInput(); @Override void close(); @Deprecated @Override HttpContent readChunk(ChannelHandlerContext ctx); @Override HttpContent readChunk(ByteBufAllocator allocator); @Override long length(); @Override long progress(); }
HttpChunkedInput implements ChunkedInput<HttpContent> { @Deprecated @Override public HttpContent readChunk(ChannelHandlerContext ctx) throws Exception { return readChunk(ctx.alloc()); } HttpChunkedInput(ChunkedInput<ByteBuf> input);  HttpChunkedInput(ChunkedInput<ByteBuf> input, LastHttpContent lastHttpContent); @Override boolean isEndOfInput(); @Override void close(); @Deprecated @Override HttpContent readChunk(ChannelHandlerContext ctx); @Override HttpContent readChunk(ByteBufAllocator allocator); @Override long length(); @Override long progress();  }