|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsefa.common.config.Configuration<RbfTypeMappingRegistry,RbfEntryPoint>
net.sf.jsefa.rbf.config.RbfConfiguration<CsvLowLevelConfiguration>
net.sf.jsefa.csv.config.CsvConfiguration
public final class CsvConfiguration
A configuration object used when creating a CSV IO factory. It uses lazy initialization.
Configuration| Nested Class Summary | |
|---|---|
static interface |
CsvConfiguration.Defaults
Set of default configuration values. |
| Constructor Summary | |
|---|---|
CsvConfiguration()
Constructs a new CsvConfiguration. |
|
| Method Summary | |
|---|---|
CsvConfiguration |
createCopy()
Creates a copy of this Configuration. |
protected CsvLowLevelConfiguration |
createDefaultLowLevelConfiguration()
Creates the default low level configuration to be used if none is explicitly given. |
String |
getDefaultNoValueString()
Returns the default no value string. |
QuoteMode |
getDefaultQuoteMode()
Returns the default quote mode. |
char |
getEscapeCharacter()
Returns the escape character. |
char |
getFieldDelimiter()
Returns the delimiter used to separate the CSV fields. |
String |
getLineBreak()
Returns the line break String. |
char |
getQuoteCharacter()
Returns the quote used to surround a field. |
EscapeMode |
getQuoteCharacterEscapeMode()
Returns the escape mode for the quote character. |
boolean |
getUseDelimiterAfterLastField()
Returns true if the last CSV field should end with a delimiter. |
void |
setDefaultNoValueString(String defaultNoValueString)
Sets the default no value string. |
void |
setDefaultQuoteMode(QuoteMode defaultQuoteMode)
Sets the default quote mode. |
void |
setEscapeCharacter(char escapeCharacter)
Sets the escape character. |
void |
setFieldDelimiter(char fieldDelimiter)
Sets the delimiter to be used to separate the CSV fields. |
void |
setLineBreak(String lineBreak)
Sets the line break String. |
void |
setQuoteCharacter(char quoteCharacter)
Sets the quote character. |
void |
setQuoteCharacterEscapeMode(EscapeMode quoteCharacterEscapeMode)
Sets the escape mode for the quote character. |
void |
setUseDelimiterAfterLastField(boolean useDelimiterAfterLastField)
Specifies whether the last CSV field should end with a delimiter or not. |
| Methods inherited from class net.sf.jsefa.rbf.config.RbfConfiguration |
|---|
createDefaultTypeMappingRegistry, getLineFilter, getLineFilterLimit, getLowLevelConfiguration, getSpecialRecordDelimiter, setLineFilter, setLineFilterLimit, setLowLevelConfiguration, setSpecialRecordDelimiter |
| Methods inherited from class net.sf.jsefa.common.config.Configuration |
|---|
getEntryPoints, getObjectAccessorProvider, getSimpleTypeConverterProvider, getTypeMappingRegistry, getValidationMode, getValidatorProvider, setEntryPoints, setObjectAccessorProvider, setSimpleTypeConverterProvider, setTypeMappingRegistry, setValidationMode, setValidatorProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CsvConfiguration()
CsvConfiguration.
| Method Detail |
|---|
public CsvConfiguration createCopy()
Configuration.
createCopy in class Configuration<RbfTypeMappingRegistry,RbfEntryPoint>Configurationpublic QuoteMode getDefaultQuoteMode()
public String getDefaultNoValueString()
public void setDefaultQuoteMode(QuoteMode defaultQuoteMode)
defaultQuoteMode - a quote modepublic void setDefaultNoValueString(String defaultNoValueString)
defaultNoValueString - a no value stringpublic char getFieldDelimiter()
CsvLowLevelConfiguration.getFieldDelimiter()public char getQuoteCharacter()
CsvLowLevelConfiguration.getQuoteCharacter()public char getEscapeCharacter()
CsvLowLevelConfiguration.getEscapeCharacter()public EscapeMode getQuoteCharacterEscapeMode()
CsvLowLevelConfiguration.getQuoteCharacterEscapeMode()public boolean getUseDelimiterAfterLastField()
CsvLowLevelConfiguration.getUseDelimiterAfterLastField()public String getLineBreak()
String.
StringLowLevelConfiguration.getLineBreak()public void setFieldDelimiter(char fieldDelimiter)
fieldDelimiter - the delimiterCsvLowLevelConfiguration.setFieldDelimiter(char)public void setQuoteCharacter(char quoteCharacter)
quoteCharacter - the quote characterCsvLowLevelConfiguration.setQuoteCharacter(char)public void setEscapeCharacter(char escapeCharacter)
escapeCharacter - the escape characterCsvLowLevelConfiguration.setEscapeCharacter(char)public void setUseDelimiterAfterLastField(boolean useDelimiterAfterLastField)
useDelimiterAfterLastField - true, if the last CSV field should end with a delimiter; otherwise false.CsvLowLevelConfiguration.setUseDelimiterAfterLastField(boolean)public void setQuoteCharacterEscapeMode(EscapeMode quoteCharacterEscapeMode)
quoteCharacterEscapeMode - the escape modeCsvLowLevelConfiguration.setQuoteCharacterEscapeMode(net.sf.jsefa.csv.lowlevel.config.EscapeMode)public void setLineBreak(String lineBreak)
String.
lineBreak - the line break StringLowLevelConfiguration.setLineBreak(java.lang.String)protected CsvLowLevelConfiguration createDefaultLowLevelConfiguration()
createDefaultLowLevelConfiguration in class RbfConfiguration<CsvLowLevelConfiguration>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||