Class HttpOutput.InputStreamWritingCB

All Implemented Interfaces:
Callback, Invocable
Enclosing class:
HttpOutput

private class HttpOutput.InputStreamWritingCB extends HttpOutput.NestedChannelWriteCB
An iterating callback that will take content from an InputStream and write it to the associated HttpChannel. A non direct buffer of size HttpOutput.getBufferSize() is used. This callback is passed to the HttpChannel.write(ByteBuffer, boolean, Callback) to be notified as each buffer is written and only once all the input is consumed will the wrapped Callback.succeeded() method be called.