public class SuperCsvTemplate extends AbstractBaseTemplate
| Constructor and Description |
|---|
SuperCsvTemplate(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(Column column)
Adds a column.
|
String |
getCharsetName() |
List<Column> |
getColumns()
Gets the columns.
|
String |
getDescription() |
List<String> |
getFields() |
List<String> |
getHeaders()
Get the column headers name.
|
String |
getName() |
org.supercsv.prefs.CsvPreference |
getPreferences()
Builder CsvPreference with template parameters.
|
List<org.supercsv.cellprocessor.ift.CellProcessor> |
getReadingCellProcessors() |
List<org.supercsv.cellprocessor.ift.CellProcessor> |
getWritingCellProcessors() |
void |
removeColumn(Column column)
Removes a column.
|
void |
setCharsetName(String charsetName) |
void |
setCsvEncoder(org.supercsv.encoder.CsvEncoder encoder)
Sets the csv encoder.
|
void |
setEndOfLine(String endOfLine) |
void |
setQuote(char quote) |
void |
setQuoteMode(org.supercsv.quote.QuoteMode quoteMode)
Sets the quote mode.
|
void |
setSeparator(char separator) |
boolean |
showHeader() |
void |
showHeader(boolean showHeader) |
void |
skipComments(org.supercsv.comment.CommentMatcher commentMatcher)
Sets the comment matcher.
|
void |
skipComments(String startWith)
Sets the string used to indicate comments, eg.
|
public SuperCsvTemplate(String name)
name - template namepublic String getName()
getName in interface TemplategetName in class AbstractBaseTemplatepublic String getDescription()
getDescription in interface TemplategetDescription in class AbstractBaseTemplatepublic org.supercsv.prefs.CsvPreference getPreferences()
public void setQuoteMode(org.supercsv.quote.QuoteMode quoteMode)
quoteMode - quote modepublic void setCsvEncoder(org.supercsv.encoder.CsvEncoder encoder)
encoder - csv encoderpublic void skipComments(String startWith)
startWith - string a the beginning of a comment linepublic void skipComments(org.supercsv.comment.CommentMatcher commentMatcher)
commentMatcher - comment matcherpublic void addColumn(Column column)
column - csv columnpublic void removeColumn(Column column)
column - csv columnpublic List<org.supercsv.cellprocessor.ift.CellProcessor> getWritingCellProcessors()
public List<org.supercsv.cellprocessor.ift.CellProcessor> getReadingCellProcessors()
public void setQuote(char quote)
quote - the quote to setpublic void setSeparator(char separator)
separator - the separator to setpublic void setEndOfLine(String endOfLine)
endOfLine - the endOfLine to setpublic String getCharsetName()
public void setCharsetName(String charsetName)
charsetName - the charsetName to setpublic boolean showHeader()
public void showHeader(boolean showHeader)
showHeader - the showHeader to setCopyright © 2013-2018–2019 SeedStack. All rights reserved.