By paliwalashish
via ashishpaliwal.com
Published: Nov 10 2008 / 12:50
Apache MINA uses the concept of Protocol Decoder to decoder read bytes into High Level Message objects. There are conditions in which a single packet may not contain the complete bytes to convert raw message into High Level Objects. For such situations, CumulativeProtocolDecoder can be used. Basically, encoder makes the framework buffer the data, till the complete data is received, to convert the byte[] into a high level object.



Comments
deepthikrishna replied ago:
description is too low....
mheath.myopenid.com replied ago:
This article doesn't explain anything and doesn't give CumulativeProtocolDecoder the credit it deserves.
paliwalashish replied ago:
Mike, Have explained the Adapter usage in article for creating XML Decoder and this post has a link to it. So, in essence the information is there. May not be the best, but enough to understand the same. And definitely, had tried to ensure that it gets it due credits :-)
Voters For This Link (9)
Voters Against This Link (2)