-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add convenience methods in FlatFileItemWriterBuilder to generate delimited/fixedLength files #631
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
Conversation
…mited files Resolves BATCH-2696
…atted files Resolves BATCH-2696
mminella
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get a test that covers a delimited file but uses the default delimiter?
|
Added test in 4da50ba to cover generating a delimited file with the default delimiter. |
| public FlatFileItemWriterBuilder<T> names(String[] names) { | ||
| this.names.addAll(Arrays.asList(names)); | ||
| return this.parent; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a vargs option as well...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took the same approach as the FlatFileItemReaderBuilder to be consistent.
We can add this for both reader and writer builders in another step.
| public FlatFileItemWriterBuilder<T> names(String[] names) { | ||
| this.names.addAll(Arrays.asList(names)); | ||
| return this.parent; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a vargs option as well...
|
Rebased, squashed, and merged as e83ed1d |
This PR resolves BATCH-2696.