Package org.apache.batchee.csv

## Class CommonsCsvWriter

- java.lang.Object
- - org.apache.batchee.csv.CommonsCsvWriter

- All Implemented Interfaces:
    `javax.batch.api.chunk.ItemWriter`

      public class CommonsCsvWriter
      extends Object
      implements javax.batch.api.chunk.ItemWriter

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CommonsCsvWriter()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Serializable` | `checkpointInfo()` |
    `void` | `close()` |
    `protected org.apache.commons.csv.CSVFormat` | `newFormat()` |
    `void` | `open​(Serializable checkpoint)` |
    `void` | `setAllowMissingColumnNames​(String allowMissingColumnNames)` |
    `void` | `setCommentMarker​(String commentMarker)` |
    `void` | `setDelimiter​(String delimiter)` |
    `void` | `setEncoding​(String encoding)` |
    `void` | `setEscapeCharacter​(String escapeCharacter)` |
    `void` | `setFormat​(String format)` |
    `void` | `setFormat​(org.apache.commons.csv.CSVFormat.Predefined predefined)` |
    `void` | `setHeader​(String header)` |
    `void` | `setHeaderComments​(String headerComments)` |
    `void` | `setIgnoreEmptyLines​(String ignoreEmptyLines)` |
    `void` | `setIgnoreSurroundingSpaces​(String ignoreSurroundingSpaces)` |
    `void` | `setLocator​(String locator)` |
    `void` | `setMapper​(String mapper)` |
    `void` | `setMapping​(String mapping)` |
    `void` | `setNullString​(String nullString)` |
    `void` | `setOutput​(String output)` |
    `void` | `setQuoteCharacter​(String quoteCharacter)` |
    `void` | `setQuoteMode​(String quoteMode)` |
    `void` | `setRecordSeparator​(String recordSeparator)` |
    `void` | `setSkipHeaderRecord​(String skipHeaderRecord)` |
    `void` | `setWriteHeaders​(String readHeaders)` |
    `void` | `writeHeaders()` |
    `void` | `writeItems​(List<Object> list)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CommonsCsvWriter

          public CommonsCsvWriter()

  - ### Method Detail

    - #### open

          public void open​(Serializable checkpoint)
                    throws Exception

      Specified by:
        `open` in interface `javax.batch.api.chunk.ItemWriter`
      Throws:
        `Exception`

    - #### writeItems

          public void writeItems​(List<Object> list)
                          throws Exception

      Specified by:
        `writeItems` in interface `javax.batch.api.chunk.ItemWriter`
      Throws:
        `Exception`

    - #### checkpointInfo

          public Serializable checkpointInfo()
                                      throws Exception

      Specified by:
        `checkpointInfo` in interface `javax.batch.api.chunk.ItemWriter`
      Throws:
        `Exception`

    - #### close

          public void close()
                     throws Exception

      Specified by:
        `close` in interface `javax.batch.api.chunk.ItemWriter`
      Throws:
        `Exception`

    - #### newFormat

          protected org.apache.commons.csv.CSVFormat newFormat()

    - #### setFormat

          public void setFormat​(String format)

    - #### setFormat

          public void setFormat​(org.apache.commons.csv.CSVFormat.Predefined predefined)

    - #### setOutput

          public void setOutput​(String output)

    - #### setEncoding

          public void setEncoding​(String encoding)

    - #### setMapper

          public void setMapper​(String mapper)

    - #### setMapping

          public void setMapping​(String mapping)

    - #### setLocator

          public void setLocator​(String locator)

    - #### setAllowMissingColumnNames

          public void setAllowMissingColumnNames​(String allowMissingColumnNames)

    - #### setDelimiter

          public void setDelimiter​(String delimiter)

    - #### setQuoteCharacter

          public void setQuoteCharacter​(String quoteCharacter)

    - #### setQuoteMode

          public void setQuoteMode​(String quoteMode)

    - #### setCommentMarker

          public void setCommentMarker​(String commentMarker)

    - #### setEscapeCharacter

          public void setEscapeCharacter​(String escapeCharacter)

    - #### setIgnoreSurroundingSpaces

          public void setIgnoreSurroundingSpaces​(String ignoreSurroundingSpaces)

    - #### setIgnoreEmptyLines

          public void setIgnoreEmptyLines​(String ignoreEmptyLines)

    - #### setRecordSeparator

          public void setRecordSeparator​(String recordSeparator)

    - #### setNullString

          public void setNullString​(String nullString)

    - #### setHeaderComments

          public void setHeaderComments​(String headerComments)

    - #### setHeader

          public void setHeader​(String header)

    - #### setSkipHeaderRecord

          public void setSkipHeaderRecord​(String skipHeaderRecord)

    - #### setWriteHeaders

          public void setWriteHeaders​(String readHeaders)

    - #### writeHeaders

          public void writeHeaders()