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

The following examples show how to use org.springframework.batch.item.file.transform.PassThroughLineAggregator. 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 File: HelloWorldJobConfig.java    From spring-batch with 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 File: ConvertNamesJobConfig.java    From spring-batch with 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
Source File: FlatFileItemWriterAutoConfigurationTests.java    From spring-cloud-task with Apache License 2.0 4 votes vote down vote up
@Bean
public LineAggregator<Map<Object, Object>> lineAggregator() {
	return new PassThroughLineAggregator<>();
}