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
3 answers

Camel bindy marshal to file creates multiple header row

I have the following camel route: from(inputDirectory) .unmarshal(jaxb) .process(jaxb2CSVDataProcessor) .split(body()) //because there is a list of CSVRecords .marshal(bindyCsvDataFormat) .to(outputDirectory); //appending to existing file…
theo
  • 915
  • 1
  • 9
  • 28
0
votes
0 answers

Camel Bindy CSV unmarshal multiple files to multiple POJO

I have 3 camel routes parsing 3 different ~ separated files. i am using Camel bindy to parse the file to a Java Object. i Have something like below
0
votes
1 answer

Apache Camel's Bindy with CsvRecord doesn't handle special unicode characters like ®

I'm using Apache Camel 2.17.1 to process a CSV file and I'm using Bindy in conjunction with CsvRecord to parse the file and unmarshal each line into a POJO. The issue I'm facing is that some of the fields in the file have special unicode characters…
sadiq
  • 149
  • 2
  • 8
0
votes
2 answers

Possible to initialize a bindy (Apache Camel DataFormat - FixedLength and use it in the same route

My input file consists of several type of FixedLengthRecord, so I have lots of FixedLengthDataFormat to unmarshal each post. I split the body per row for the first I should realize which DataFormat I should use, and create an object Then…
Sheri
  • 75
  • 9
0
votes
1 answer

how to get isHeader/isFooter annotated property via an Apache Camel BindyFixedLengthDataFormat object

I have some FixedLengthRecord objects that I initialize a BindyFixedLengthDataFormat object via one of those records. First I have to know if that POJO isHeader or isFooter (I have annotated on those pojos), and then other steps: from(myUri) …
Sheri
  • 75
  • 9
0
votes
1 answer

Apache Camel Bindy - can I have a customized data-type for a field?

I have a field that it can have just two values, let us say "A" or "B". If we use FF4J (Fixed format 4J), so we can have a formatter and define an enum for that reason. How abount Apache Camel Bindy. I do not find anything similar to FF4J…
Sheri
  • 75
  • 9
0
votes
1 answer

How to write collection of @FixedLengthRecord to a flat file using apache camel

I have a List with the POJO annotated with @FixedLengthRecord and I am using But I am not able to write all the data to a flat file. I know that the csv format works in this case.
Jayram Rout
  • 57
  • 1
  • 2
  • 8
0
votes
1 answer

Sub String using FixedLengthRecord of Apache Bindy

I am using apache bindy and have used @FixedLengthRecord @DateField(columnName="Name", pos=1, length=10) private String name; Now is there any functionality that when the name field is more than 10 characters then we can substring only 10…
Jayram Rout
  • 57
  • 1
  • 2
  • 8
0
votes
1 answer

Camel Bindy: providing the class to use in spring.xml

I am sure I have missed something really obvious but just haven’t worked it out. We use bindy to extract a CSV file into a POJO . This has been working nice and well. We have been given some more CSV files to load. This is where I discovered the…
0
votes
2 answers

Apache camel bindy

I would like to know about writing Objects to a CSV using camel bindy,But my class has a user defined datatypes.I see bindy source code, gives exception for the data types other than which are predefined,Any option in bindy for doing like this.If…
I'mvinay
  • 1
  • 2
0
votes
0 answers

Apache Camel - Bindy - CSV - Producer - Finishing each line with the separator

I would like, while producing CSV files with bindy, to finish each line with the separator. My first thought was to search for a configuration annotation, which I could not find. At the moment I am using a workaround, which consists of having a…
publicMee
  • 170
  • 1
  • 13
0
votes
1 answer

Camel Bindy converts BigDecimal inappropriately

I've got the following example of using Camels Bindy, but eventually it raises assertion error because bindy transforms BigDecimal in wrong way (using comma instead of dot for number delimiter). What is wrong with this code ? public class…
ashur
  • 4,177
  • 14
  • 53
  • 85
0
votes
1 answer

InstantiationException when unmarshaling csv with BindyCsvDataFormat and @CsvRecord with Camel

Using Camel I'm sending a string with CSV to a queue where it is to be unmarshaled into a list of maps using BindyCsvDataFormat. My question is simply why am I getting InstantiationException here? Something wrong with the CSV-formatting or the way I…
LoudRobed
  • 11
  • 1
0
votes
2 answers

bindy csv encoding different from local

Where can I define the encoding of my input file in order to be correctly read by Bindy ? My input file is ISO-8859-1, CRLF My local is UTF-8 (I don't to change it...) So when I read my file some character are…
Nicolas Hauzaree
  • 743
  • 1
  • 5
  • 9
0
votes
1 answer

camel bindy decimal pattern

I need a point as decimal separator in my output file. When using this pattern : @DataField(pos = 12, precision = 1, pattern = "####.#") Double amount; with for ex. input: 1491.84 the output is strangely (no decimal): 1491. if I change my pattern…
Nicolas Hauzaree
  • 743
  • 1
  • 5
  • 9