see the official spring batch documentation for itemReader
public interface ItemReader<T> { T read() throws Exception, UnexpectedInputException, ParseException; }
the processor works with the same
public class FooProcessor implements ItemProcessor<List<?>, List<?>> { @Override public List<?> process(List<?> item) throws Exception {
instead of returning a list, the processor can return anything, for example. line
public class FooProcessor implements ItemProcessor<List<?>, String> { @Override public String process(List<?> item) throws Exception {
source share