exceptionfactory commented on pull request #5560:
URL: https://github.com/apache/nifi/pull/5560#issuecomment-1010501062


   Netty provides a 
[ByteBufInputStream](https://netty.io/4.1/api/io/netty/buffer/ByteBufInputStream.html),
 which could be combined with 
[SequenceInputStream](https://docs.oracle.com/javase/8/docs/api/java/io/SequenceInputStream.html)
 and a custom 
[Enumeration](https://docs.oracle.com/javase/8/docs/api/java/util/Enumeration.html)
 to pass `ByteBuf` messages received on `channelRead0()`.  The key detail would 
be the `Enumeration` implementation.  The implementation would need to block on 
the `hasMoreElements()` method, and eventually return `false` when the Netty 
channel is closed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to