# Uses of Interface
org.springframework.batch.item.xml.StaxWriterCallback

Packages that use StaxWriterCallback
Package
Description
org.springframework.batch.item.xml
Infrastructure implementations of xml input and output.
org.springframework.batch.item.xml.builder
Builders for Stax event item reader and writer.

- ## Uses of StaxWriterCallback in org.springframework.batch.item.xml

  Methods in org.springframework.batch.item.xml with parameters of type StaxWriterCallback
  Modifier and Type
  Method
  Description
  `void`
  StaxEventItemWriter.`setFooterCallback(StaxWriterCallback footerCallback)`
  footerCallback is called after writing all items but before closing the file.
  `void`
  StaxEventItemWriter.`setHeaderCallback(StaxWriterCallback headerCallback)`
  headerCallback is called before writing any items.

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

  Methods in org.springframework.batch.item.xml.builder with parameters of type StaxWriterCallback
  Modifier and Type
  Method
  Description
  `StaxEventItemWriterBuilder<T>`
  StaxEventItemWriterBuilder.`footerCallback(StaxWriterCallback footerCallback)`
  A `StaxWriterCallback` to provide any footer elements
  `StaxEventItemWriterBuilder<T>`
  StaxEventItemWriterBuilder.`headerCallback(StaxWriterCallback headerCallback)`
  A `StaxWriterCallback` to provide any header elements