camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lb <>
Subject [camel-bindy] Handle implied decimal field
Date Tue, 20 Nov 2012 11:54:04 GMT
Hy all,
is tenere any way to handle numbers represented with implied decimals?

I mean, the communication with some legacy systems often relies on old
protocols and formats not easy to change and among that you may have to deal
with fixed lenght records on which decimal numbers are not represented with
a decimal separator but the number of decimal places is defined by the
protocol definition (e.g. COBOL copy-book).


@DataField(pos = 7, length = 5, precision = 2, sign = true,
implied-decimal-separator = true)
private BigDecimal amount;

The string "-1234" maps to -12.34 in Java.

If a solution does not exists I may start to work on it, if there is a
little interest of course.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message