CsvBindByName,
CsvBindByPosition, etc.), it is used for the conversion. The
following types are supported:
java.lang.Byte java.lang.Double java.lang.Float java.lang.Integer java.lang.Long java.lang.Short java.math.BigDecimal java.math.BigInteger | Modifier and Type | Method and Description |
|---|---|
| public String[] | Returns: The names of the profiles this configuration is forA profile can be used to annotate the same field differently for different inputs or outputs. |
| public RoundingMode | Returns: The rounding pattern to be used if decimals are formattedThe rounding mode for formatting decimals. |
| public String | |
| public String | |
| public boolean | Returns: Whether the read format is used for writing as wellWhether or not the same format string is used for writing as for reading. |
| profiles | back to summary |
|---|---|
| public String[] profiles() A profile can be used to annotate the same field differently for different inputs or outputs. Perhaps you have multiple input sources, and they all use different header names or positions for the same data. With profiles, you don't have to create different beans with the same fields and different annotations for each input. Simply annotate the same field multiple times and specify the profile when you parse the input. The same applies to output: if you want to be able to represent the same data in multiple CSV formats (that is, with different headers or orders), annotate the bean fields multiple times with different profiles and specify which profile you want to use on writing. Results are undefined if profile names are not unique. If the same configuration applies to multiple profiles, simply list all applicable profile names here. This parameter is an array of strings. The empty string, which is the default value, specifies the default profile and will be used if no annotation for the specific profile being used can be found, or if no profile is specified.
| |
| roundingMode | back to summary |
|---|---|
| public RoundingMode roundingMode() The rounding mode for formatting decimals.
The default rounding mode, in keeping with
| |
| value | back to summary |
|---|---|
| public String value() A decimal format string.
This must be a localized pattern understood by
| |
| writeFormat | back to summary |
|---|---|
| public String writeFormat() A number format string. The default value is blank and only exists to make sure the parameter is optional.
| |
| writeFormatEqualsReadFormat | back to summary |
|---|---|
| public boolean writeFormatEqualsReadFormat() Whether or not the same format string is used for writing as for reading.
If this is true,
| |