Replaying ChannelBufferInputStream

Daniel Ferber dffforum at gmail.com
Mon Aug 2 13:59:33 EDT 2010


I am wondering if it would make sense to provide a "replaying"
ChannelBufferInputStream to be used by a ReplayingDecoder.

The current ChannelBufferInputStream throws and EOFException whenever a read
operation requires more bytes than currently available in the ChannelBuffer.
That conforms to the DataInput interface that ChannelBufferInputStream
implements.

However, the ReplayingDecoder does not understand the EOFException from the
ChannelBufferInputStream. Instead of trying to again read again later when
more data is received, the EOFException causes the ReplayingDecoder to fail.

If there is no other solution that I might have missed, I would like to
propose a ReplayingChannelBufferInputStream for the specific purpose to
easily enable the ReplayingDecoder  for even more complex decoding of data
serialized by an OutputData.

Best regards,
Daniel Felix Ferber
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100802/a5ce9b80/attachment.html 


More information about the netty-users mailing list