com.northconcepts.datapipeline.csv
Class CSVWriter
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataWriter
com.northconcepts.datapipeline.core.AbstractWriter
com.northconcepts.datapipeline.core.TextWriter
com.northconcepts.datapipeline.core.LinedTextWriter
com.northconcepts.datapipeline.csv.CSVWriter
public class CSVWriter
- extends LinedTextWriter
Writes records to a Comma Separated Value (CSV) stream.
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getDescription, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, setDescription, toString |
CSVWriter
public CSVWriter(File file)
CSVWriter
public CSVWriter(Writer writer)
addExceptionProperties
public DataException addExceptionProperties(DataException exception)
- Description copied from class:
DataEndpoint
- Adds this endpoint's current state to a
DataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.
- Overrides:
addExceptionProperties in class LinedTextWriter
getFieldSeparator
public char getFieldSeparator()
setFieldSeparator
public CSVWriter setFieldSeparator(char columnSeparator)
getQuoteChar
public char getQuoteChar()
setQuoteChar
public CSVWriter setQuoteChar(char quoteChar)
assembleLine
protected void assembleLine(Record record,
StringBuffer lineBuffer)
throws Throwable
- Specified by:
assembleLine in class LinedTextWriter
- Throws:
Throwable
Copyright (c) 2007-2012 North Concepts Inc. All Rights Reserved.