ChunkedWriteHandler.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | isEndOfInput()
Return |
| public long | Returns: the length of the input if the length of the input is known. a negative value if the length of the input is unknown.Returns the length of the input. |
| public long | |
| public B | Returns: the fetched chunk.null if there is no data left in the stream.
Please note that null does not necessarily mean that the
stream has reached at its end. In a slow stream, the next chunk
might be unavailable just momentarily.The context which provides a ctx)ByteBufAllocator if buffer allocation is necessary.
Deprecated
Use
readChunk(ByteBufAllocator).
|
| public B | Returns: the fetched chunk.null if there is no data left in the stream.
Please note that null does not necessarily mean that the
stream has reached at its end. In a slow stream, the next chunk
might be unavailable just momentarily.ByteBufAllocator if buffer allocation is necessary.Fetches a chunked data from the stream. |
| close | back to summary |
|---|---|
| public void close() throws Exception Releases the resources associated with the input. | |
| isEndOfInput | back to summary |
|---|---|
| public boolean isEndOfInput() throws Exception Return | |
| length | back to summary |
|---|---|
| public long length() Returns the length of the input.
| |
| progress | back to summary |
|---|---|
| public long progress() Returns current transfer progress. | |
| readChunk | back to summary |
|---|---|
| public B readChunk(ChannelHandlerContext ctx) throws Exception
Deprecated Use Fetches a chunked data from the stream. Once this method returns the last chunk
and thus the stream has reached at its end, any subsequent
| |
| readChunk | back to summary |
|---|---|
| public B readChunk(ByteBufAllocator allocator) throws Exception Fetches a chunked data from the stream. Once this method returns the last chunk
and thus the stream has reached at its end, any subsequent
| |