
public class CommonFileChunkedInput extends Object implements io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
| Constructor and Description |
|---|
CommonFileChunkedInput(FileInterface document) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isEndOfInput() |
long |
length() |
long |
progress() |
io.netty.buffer.ByteBuf |
readChunk(io.netty.buffer.ByteBufAllocator byteBufAllocator) |
io.netty.buffer.ByteBuf |
readChunk(io.netty.channel.ChannelHandlerContext ctx) |
public CommonFileChunkedInput(FileInterface document) throws HttpIncorrectRetrieveException
document - HttpIncorrectRetrieveExceptionpublic final io.netty.buffer.ByteBuf readChunk(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
readChunk in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>Exceptionpublic final long length()
length in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>public final long progress()
progress in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>public final boolean isEndOfInput()
isEndOfInput in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>public final void close()
throws HttpIncorrectRetrieveException
close in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>HttpIncorrectRetrieveExceptionCopyright © 2009–2022 Waarp. All rights reserved.