Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FixedLengthListBinder and CsvListBinder always need a class model problem #153

Open
eapereira opened this issue Jul 1, 2018 · 1 comment

Comments

@eapereira
Copy link

Hello, I was trying to use Smooks to convert some FTL and CSV files, in my case I dont have a model for those files, all I have is the columns names and length from my database.

What I need is to create a list of maps from those file's columns. But I cant use smooks 'cause it needs for FixedLengthListBinder and CsvListBinder a class to use to store the data.

If FixedLengthListBinder and CsvListBinder could return a List would solve my problem.

What I must implement to achieve that?

@manish-in-java
Copy link
Member

@eapereira, not sure if you found something else that works for you, so posting this message. You might want to take a look at uniVocity Parsers, a Java library for reading and writing data from and to text-based file formats like CSV, TSV and fixed-width.

You might want to take a look at this tutorial that specifically describes reading data as a Map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants