org.springframework.batch.item.file

## Interface FlatFileHeaderCallback

-     public interface FlatFileHeaderCallback

  Callback interface for writing a header to a file.
  Author:
    Robert Kasanicky, Mahmoud Ben Hassine

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `writeHeader(java.io.Writer writer)` Write contents to a file using the supplied `Writer`.

- - ### Method Detail

    - #### writeHeader

          void writeHeader(java.io.Writer writer)
                    throws java.io.IOException

      Write contents to a file using the supplied `Writer`. It is not required to flush the writer inside this method.
      Parameters:
        `writer` - the `Writer` to be used to write the header.
      Throws:
        `java.io.IOException` - if error occurs during writing.