public interface ChunkedInput<B>
ChunkedWriteHandler
.Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the resources associated with the input.
|
boolean |
isEndOfInput()
Return
true if and only if there is no data left in the stream
and the stream has reached at its end. |
B |
readChunk(ChannelHandlerContext ctx)
Fetches a chunked data from the stream.
|
boolean isEndOfInput() throws java.lang.Exception
true
if and only if there is no data left in the stream
and the stream has reached at its end.java.lang.Exception
void close() throws java.lang.Exception
java.lang.Exception
B readChunk(ChannelHandlerContext ctx) throws java.lang.Exception
isEndOfInput()
call must return true
.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.java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.