In this post, we will show you how to use Spring Batch to read an XML file with your
StaxEventItemReader and write its data to Oracle Database using Custom
ItemWriter. We will also learn how to use
ItemProcessor to process input data before writing to the database.
ItemWriter is a class where we write our own way of reading or writing data. In Custom Reader we are required to handle the chunking logic as well. This comes in handy if our reading logic is complex and cannot be handled using Default ItemReader provided by spring.