Class FileSystemReader

  • All Implemented Interfaces:
    org.springframework.batch.core.StepExecutionListener, org.springframework.batch.core.StepListener, org.springframework.batch.item.ItemReader<java.io.File>

    public class FileSystemReader
    extends StepExecutionSupport
    implements org.springframework.batch.item.ItemReader<java.io.File>
    Author:
    Daniel Bernstein Date: Jul 16, 2014
    • Constructor Detail

      • FileSystemReader

        public FileSystemReader​(java.io.File rootDirectory)
    • Method Detail

      • read

        public java.io.File read()
                          throws java.lang.Exception,
                                 org.springframework.batch.item.UnexpectedInputException,
                                 org.springframework.batch.item.ParseException,
                                 org.springframework.batch.item.NonTransientResourceException
        Specified by:
        read in interface org.springframework.batch.item.ItemReader<java.io.File>
        Throws:
        java.lang.Exception
        org.springframework.batch.item.UnexpectedInputException
        org.springframework.batch.item.ParseException
        org.springframework.batch.item.NonTransientResourceException