public static class CsvFormatTrait.Configuration extends Object
CsvConfiguration
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
String |
getCharsetName()
Returns the charset name.
|
String |
getCodecName()
Returns the codec name.
|
String |
getDateFormat()
Returns the
Date representation in SimpleDateFormat . |
String |
getDateTimeFormat()
Returns the
DateTime representation in SimpleDateFormat . |
String |
getFalseFormat()
Returns the
"false" representation. |
String |
getTrueFormat()
Returns the
"true" representation. |
boolean |
isAllowLinefeed()
Returns whether each value can contain linefeed.
|
boolean |
isEnableHeader()
Returns whether the header is required.
|
boolean |
isForceHeader()
Returns whether the header is always required.
|
void |
setAllowLinefeed(boolean allow)
Sets whether each value can contain linefeed.
|
void |
setCharsetName(String charsetName)
Sets the charset name.
|
void |
setCodecName(String codecName)
Sets the codec name.
|
void |
setDateFormat(String format)
Configures the
Date representation. |
void |
setDateTimeFormat(String format)
Configures the
DateTime representation. |
void |
setEnableHeader(boolean enableHeader)
Configures whether the header is required.
|
void |
setFalseFormat(String format)
Configures the
"false" representation. |
void |
setForceHeader(boolean forceHeader)
Sets whether the header is always required.
|
void |
setTrueFormat(String format)
Configures the
"true" representation. |
public String getCharsetName()
public void setCharsetName(String charsetName)
charsetName
- the charset namepublic boolean isEnableHeader()
true
if header is required, otherwise false
(default: false)public void setEnableHeader(boolean enableHeader)
enableHeader
- true
to require header, otherwise false
public boolean isForceHeader()
true
if header is always required, otherwise false
(default: false)public void setForceHeader(boolean forceHeader)
forceHeader
- true
to always require header, otherwise false
public String getTrueFormat()
"true"
representation.CsvConfiguration.DEFAULT_TRUE_FORMAT
)public void setTrueFormat(String format)
"true"
representation.format
- the representationpublic String getFalseFormat()
"false"
representation.CsvConfiguration.DEFAULT_FALSE_FORMAT
)public void setFalseFormat(String format)
"false"
representation.format
- the representationpublic String getDateFormat()
Date
representation in SimpleDateFormat
.CsvConfiguration.DEFAULT_DATE_FORMAT
)public void setDateFormat(String format)
Date
representation.format
- the representation in SimpleDateFormat
public String getDateTimeFormat()
DateTime
representation in SimpleDateFormat
.CsvConfiguration.DEFAULT_DATE_TIME_FORMAT
)public void setDateTimeFormat(String format)
DateTime
representation.format
- the representation in SimpleDateFormat
public boolean isAllowLinefeed()
true
if allowed, otherwise false
public void setAllowLinefeed(boolean allow)
allow
- true
if allowed, otherwise false
public String getCodecName()
null
if no codecs are specifiedpublic void setCodecName(String codecName)
codecName
- the codec name, or null
to reset itCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.