Java Code Examples for org.springframework.batch.item.file.transform.PassThroughLineAggregator

The following examples show how to use org.springframework.batch.item.file.transform.PassThroughLineAggregator. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: spring-batch   Source File: HelloWorldJobConfig.java    License: MIT License 5 votes vote down vote up
@Bean
public FlatFileItemWriter<String> writer() {
  return new FlatFileItemWriterBuilder<String>()
      .name("greetingItemWriter")
      .resource(new FileSystemResource(
          "target/test-outputs/greetings.txt"))
      .lineAggregator(new PassThroughLineAggregator<>()).build();
}
 
Example 2
Source Project: spring-batch   Source File: ConvertNamesJobConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public FlatFileItemWriter<Person> itemWriter() {
  return new FlatFileItemWriterBuilder<Person>().name("personItemWriter")
      .resource(new FileSystemResource("target/test-outputs/persons.txt"))
      .lineAggregator(new PassThroughLineAggregator<>()).build();
}
 
Example 3
@Bean
public LineAggregator<Map<Object, Object>> lineAggregator() {
	return new PassThroughLineAggregator<>();
}