Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF9A0DD2F for ; Tue, 20 Nov 2012 11:54:30 +0000 (UTC) Received: (qmail 4273 invoked by uid 500); 20 Nov 2012 11:54:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 4174 invoked by uid 500); 20 Nov 2012 11:54:30 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 4162 invoked by uid 99); 20 Nov 2012 11:54:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2012 11:54:30 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of lburgazzoli@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2012 11:54:24 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TamOy-0000IR-3m for users@camel.apache.org; Tue, 20 Nov 2012 03:54:04 -0800 Date: Tue, 20 Nov 2012 03:54:04 -0800 (PST) From: lb To: users@camel.apache.org Message-ID: <1353412444030-5723003.post@n5.nabble.com> Subject: [camel-bindy] Handle implied decimal field MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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). Example: @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. Thx -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-Handle-implied-decimal-field-tp5723003.html Sent from the Camel - Users mailing list archive at Nabble.com.