# Uses of Class
org.springframework.batch.item.xml.builder.StaxEventItemReaderBuilder

Packages that use StaxEventItemReaderBuilder
Package
Description
org.springframework.batch.item.xml.builder
Builders for Stax event item reader and writer.

- ## Uses of StaxEventItemReaderBuilder in org.springframework.batch.item.xml.builder

  Methods in org.springframework.batch.item.xml.builder that return StaxEventItemReaderBuilder
  Modifier and Type
  Method
  Description
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`addFragmentRootElements(String... fragmentRootElements)`
  Adds the list of fragments to be used as the root of each chunk to the configuration.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`addFragmentRootElements(List<String> fragmentRootElements)`
  Adds the list of fragments to be used as the root of each chunk to the configuration.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`currentItemCount(int currentItemCount)`
  Index for the current item.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`encoding(String encoding)`
  Encoding for the input file.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`maxItemCount(int maxItemCount)`
  Configure the max number of items to be read.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`name(String name)`
  The name used to calculate the key within the `ExecutionContext`.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`resource(org.springframework.core.io.Resource resource)`
  The `Resource` to be used as input.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`saveState(boolean saveState)`
  Configure if the state of the `ItemStreamSupport` should be persisted within the `ExecutionContext` for restart purposes.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`strict(boolean strict)`
  Setting this value to true indicates that it is an error if the input does not exist and an exception will be thrown.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)`
  An implementation of the `Unmarshaller` from Spring's OXM module.
  `StaxEventItemReaderBuilder<T>`
  StaxEventItemReaderBuilder.`xmlInputFactory(XMLInputFactory xmlInputFactory)`
  Set the `XMLInputFactory`.