CSVWriter (Solr 3.6.2 API)
Keywords: org.apache.solr.internal.csv.writer.CSVWriter class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.solr.internal.csv.writer
Class CSVWriter

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

    public class CSVWriter

extends Object

CSVWriter

Version:
  $Id: $
Author:
  Martin van den Bemt

Constructor Summary
`CSVWriter()`
`CSVWriter(CSVConfig config)`

Method Summary
`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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD