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
- HttpIncorrectRetrieveException
public io.netty.buffer.ByteBuf readChunk(io.netty.channel.ChannelHandlerContext ctx) throws Exception
readChunk
in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
Exception
public long length()
length
in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
public long progress()
progress
in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
public boolean isEndOfInput()
isEndOfInput
in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
public void close() throws HttpIncorrectRetrieveException
close
in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
HttpIncorrectRetrieveException
Copyright © 2009–2020 Waarp. All rights reserved.