Class StaxEventItemReader<T>

All Implemented Interfaces:
ResourceAwareItemReaderItemStream<T>, ItemReader<T>, ItemStream, ItemStreamReader<T>, org.springframework.beans.factory.InitializingBean

public class StaxEventItemReader<T> extends AbstractItemCountingItemStreamItemReader<T> implements ResourceAwareItemReaderItemStream<T>, org.springframework.beans.factory.InitializingBean
Item reader for reading XML input based on StAX.

It extracts fragments from the input XML document which correspond to records for processing. The fragments are wrapped with StartDocument and EndDocument events so that the fragments can be further processed like standalone XML documents.

The implementation is not thread-safe.

Author:
Robert Kasanicky, Mahmoud Ben Hassine, Glenn Renfro
  • Field Details

    • DEFAULT_ENCODING

      public static final String DEFAULT_ENCODING
  • Constructor Details

    • StaxEventItemReader

      public StaxEventItemReader()
  • Method Details