public class CommonsCsvWriter extends Object implements javax.batch.api.chunk.ItemWriter
Constructor and Description |
---|
CommonsCsvWriter() |
Modifier and Type | Method and 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(org.apache.commons.csv.CSVFormat.Predefined predefined) |
void |
setFormat(String format) |
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) |
public void open(Serializable checkpoint) throws Exception
open
in interface javax.batch.api.chunk.ItemWriter
Exception
public void writeItems(List<Object> list) throws Exception
writeItems
in interface javax.batch.api.chunk.ItemWriter
Exception
public Serializable checkpointInfo() throws Exception
checkpointInfo
in interface javax.batch.api.chunk.ItemWriter
Exception
public void close() throws Exception
close
in interface javax.batch.api.chunk.ItemWriter
Exception
protected org.apache.commons.csv.CSVFormat newFormat()
public void setFormat(String format)
public void setFormat(org.apache.commons.csv.CSVFormat.Predefined predefined)
public void setOutput(String output)
public void setEncoding(String encoding)
public void setMapper(String mapper)
public void setMapping(String mapping)
public void setLocator(String locator)
public void setAllowMissingColumnNames(String allowMissingColumnNames)
public void setDelimiter(String delimiter)
public void setQuoteCharacter(String quoteCharacter)
public void setQuoteMode(String quoteMode)
public void setCommentMarker(String commentMarker)
public void setEscapeCharacter(String escapeCharacter)
public void setIgnoreSurroundingSpaces(String ignoreSurroundingSpaces)
public void setIgnoreEmptyLines(String ignoreEmptyLines)
public void setRecordSeparator(String recordSeparator)
public void setNullString(String nullString)
public void setHeaderComments(String headerComments)
public void setHeader(String header)
public void setSkipHeaderRecord(String skipHeaderRecord)
public void setWriteHeaders(String readHeaders)
public void writeHeaders()
Copyright © 2017 The Apache Software Foundation. All rights reserved.