[ 
https://issues.apache.org/activemq/browse/CAMEL-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59430#action_59430
 ] 

Christian Mueller commented on CAMEL-2731:
------------------------------------------

Charles, Claus,

should we use the '@CsvRecord(separator = "")' annotation or should we 
introduce a new annotation? E. .g '@FixLengthRecord'?

Cheers,
Christian

> Camel-bindy should be able to process fix length records
> --------------------------------------------------------
>
>                 Key: CAMEL-2731
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2731
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-bindy
>    Affects Versions: 2.3.0
>         Environment: All
>            Reporter: Christian Mueller
>            Assignee: Christian Mueller
>             Fix For: 2.4.0
>
>
> Camel-bindy should be able to process fix length records which has no 
> separators:
> A sample line could looks like: 
> {code}
> 4711123456789065432109876543219999999999999999
> {code}
> 4711 is the companyId
> 1234567890 is the cardProgram
> 6543210987654321 is the accountNumber
> 9999999999999999 is the cardNumber
> Created a POJO with the Camel bindy annotations:
> {code}
> @CsvRecord(separator = "")
> public class CSVRecord implements Serializable {
>        
>     @DataField(pos = 1, length = 4)
>     private String companyId;
>        
>     @DataField(pos = 2, length = 10)
>     private String cardProgram;
>     @DataField(pos = 3, length = 16)
>     private String accountNumber;
>        
>     @DataField(pos = 4, length = 16)
>     private String cardNumber;
>    // getter and setter
> }
> {code} 
> See 
> [nabble|http://old.nabble.com/camel-bindy%3A-not-possible-to-process-fix-length-records-without-separators--ts28584909.html]
>  for details.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to