> From: Claus Ibsen [mailto:[email protected]]
> On Friday, May 27, 2011, Klug, Johannes <[email protected]> wrote:
> > Looking at Bindy [1],  I wondered whether it had sub-byte support.
> > Let me explain:
> >
> > Imagine two 4-bit Integers, packed as one byte. Could you use Bindy
> > to extract both of them?
> >
> 
> No that is not possible. We may add support for custom types and Type
> marshallers in the future. As usual contributions is welcome.
> 
> You can though add two getters that get the bits from that byte in
> your model class

Thanks for the answer. Our use cases are not all as trivial as that, though. 
Some pieces of the incoming data are just one bit long (flags), others span 
multiple bytes. For our project, we've written a completely flexible engine for 
unmarshalling data like that, including signed/unsigned 
little-endian/big-endian int support, and floating point numbers.

I'm not sure how much effort it would be to integrate that into Camel - and it 
seems like ours is a fairly exotic problem which the rest of the world doesn't 
really care about. I'll check the Bindy code when I've got some time to get a 
feel for the component.

Cheers,
Johannes

Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.


Reply via email to