java.lang.Object
org.springframework.cloud.task.batch.autoconfigure.RangeConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,org.springframework.batch.item.file.transform.Range>

@Component @ConfigurationPropertiesBinding public class RangeConverter extends Object implements org.springframework.core.convert.converter.Converter<String,org.springframework.batch.item.file.transform.Range>
Converter for taking properties of format start-end or start (where start and end are both integers) and converting them into Range instances for configuring a FlatFileItemReader.
Since:
2.3
Author:
Michael Minella
  • Constructor Details

    • RangeConverter

      public RangeConverter()
  • Method Details

    • convert

      public org.springframework.batch.item.file.transform.Range convert(String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,org.springframework.batch.item.file.transform.Range>