Suppose you have directory with many files like
unicorns.xml dogs.xml cats.xml birds.xml etc

You use MultiItemResourceReader and specify only directory to read all files in batch job:
HTML Code:
    <bean id="multiResourceReader"
          scope="step"
          class="org.springframework.batch.item.file.MultiResourceItemReader">
        <property name="resources" value="${input.files}" />
        <property name="delegate" ref="oneFileReader" />
    </bean>
What is the simplest way to write output files in other directory with similar names after processing?

Like unicorns.out.xml dogs.out.xml birds.out.xml