org.apache.solr.internal.csv.writer

## Class CSVWriter

- java.lang.Object
- - org.apache.solr.internal.csv.writer.CSVWriter

-     public class CSVWriter
      extends Object

  CSVWriter

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CSVWriter()`
    `CSVWriter(CSVConfig config)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CSVConfig` | `getConfig()`
    `void` | `setConfig(CSVConfig config)` Set the CSVConfig
    `void` | `setWriter(Writer writer)` Set the writer to write the CSV file to.
    `void` | `writeRecord(Map map)`
    `protected String` | `writeValue(CSVField field, String value)`

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

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

- - ### Constructor Detail

    - #### CSVWriter

          public CSVWriter()

    - #### CSVWriter

          public CSVWriter(CSVConfig config)

  - ### Method Detail

    - #### writeRecord

          public void writeRecord(Map map)

    - #### writeValue

          protected String writeValue(CSVField field,
                                      String value)
                               throws Exception

      Throws:
        `Exception`

    - #### getConfig

          public CSVConfig getConfig()

      Returns:
        the CVSConfig or null if not present

    - #### setConfig

          public void setConfig(CSVConfig config)

      Set the CSVConfig
      Parameters:
        `config` - the CVSConfig

    - #### setWriter

          public void setWriter(Writer writer)

      Set the writer to write the CSV file to.
      Parameters:
        `writer` - the writer.

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.