public class ChunkedFileWriter extends Object implements io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
ChunkedFile so that we can use a pure input stream
as opposed to file objects.| Modifier and Type | Field and Description |
|---|---|
protected int |
chunkSize |
protected InputStream |
stream |
| Constructor and Description |
|---|
ChunkedFileWriter(InputStream in,
int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isEndOfInput() |
io.netty.buffer.ByteBuf |
readChunk(io.netty.channel.ChannelHandlerContext ctx) |
protected InputStream stream
protected int chunkSize
public ChunkedFileWriter(InputStream in, int chunkSize)
public boolean isEndOfInput()
throws Exception
isEndOfInput in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>Exceptionpublic void close()
throws Exception
close in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>ExceptionCopyright © 2012-2015. All Rights Reserved.