Questions tagged [bindy]

Bindy is a component for Apache-Camel for parsing/binding non-structured data (e.g. CSV records) to/from Java Beans.

Bindy is a component for for parsing/binding non-structured data to/from Java Beans.

It has a support for:

  • CSV records
  • Fixed-length records,
  • FIX messages,
  • or almost any other non-structured data

Bindy evaluates the annotations in the used Java Beans to determine the record structure and to perform the parsing/binding between the data records and the Beans.

99 questions
0
votes
1 answer

Camel Bindy return 0 instead of null (empty)

If the input data is null, when marshaling using my Bindy model (elToCSV) : @DataField(pos = 7) int nbRoom; and route as follow: from("direct:start").bean(ELProcessor.class,"myMethod").marshal(elToCSV).to("file:" + outFolder +…
Nicolas Hauzaree
  • 743
  • 1
  • 5
  • 9
0
votes
3 answers

Flat file to Pojo w/ oneToMany unmarshal doesn't work

I have following test programs using http://camel.apache.org/bindy.html Problem is code is able to marshal pojo structure into flat CSV file, but it is not able to unmarshal the file data back to pojo. apache-camel-bindy: 2.13.0 Order Java…
gpa
  • 2,411
  • 6
  • 38
  • 68
0
votes
0 answers

Camel Bindy CSV - Unmarshal multiple queued JSON payloads into file with single header row

I have a use case where I am receiving random messages (with a JSON payload) via a queue (RabbitMQ) in Camel and I need to transform these JSON payloads into a CSV format to store in a file. What I have is mostly working, but when I try to add in…
jfoster67
  • 23
  • 4
0
votes
1 answer

Parse key-value text file using camel-bindy or beanio

I have an option to use either bindy or beanIO camel components to parse a csv file. Besides this csv there is dat (txt) file which contains key-value. Is it possible to parse this file to Map using one of mentioned libraries?
Macchiatow
  • 607
  • 10
  • 24
0
votes
2 answers

Camel Bindy : configurable "pos" attribute in @DataField

I am configuring my POJO to unmarshal a CSV line, so I declared my attributes as indicated on the camel-bindy official page, and everything went well when unmarshalling. @DataField(pos = 1) private String name; ... getter and setter What I…
Karim L.
  • 43
  • 1
  • 1
  • 8
0
votes
1 answer

Bindy CRLF for UNMARSHAL

I wanted to unmarshall a csv file to a Bean. The issue is the record separator or the newline will be a semi colon ";" The CSVAnnotation has a crlf separator for marhalling to a csv file. Is there a work around for the reverse scenario. As of now I…
-1
votes
1 answer

Set default value for Bindy field

I'm generating a large .CSV file defined by a Bindy model. Not all fields are filled so I need sometimes a default value but I don't find a parameter to define this.
Nicolas Hauzaree
  • 743
  • 1
  • 5
  • 9
-4
votes
2 answers

How to define a grouping separator for parsing BigDecimal numbers in Camel Bindy?

I have a CSV file that contains numbers in this format: 1,234.56 with , being the grouping separator and . being the decimal separator. I'd like to parse that number as a BigDecimal using Camel Bindy. This is the part of the model class for this…
anon
-4
votes
1 answer

How to set a default value for boolean field in a model class for Camel Bindy

I'm using Bindy to a map csv file data to a given model class. This whole process works fine, except the default value of the boolean field. This field is not part of the csv file, but necessary in the model class for further processes. I have set…
anon
1 2 3 4 5 6
7