Conversion implementations in package com.univocity.parsers.conversions .
Commonly used for java beans processed using BeanProcessor and/or BeanWriterProcessor
Implementation Note
All annotations in @Parsed fields are processed by AnnotationHelper
Conversion, Conversions, BeanProcessor, BeanWriterProcessor, AnnotationHelper
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: flag indicating whether the default conversion, based on the field type, is to be applied for this field.Flag to indicate whether the parsed field should be converted automatically based on the field type. |
| public String | Returns: the default String to return when the parsed value is nullThe default value to assign to this field in the parsed value is null The String literal "null" will be interpreted as a regular null. |
| public String | Returns: default String to write when the input is null.The default value to read from this field if it is null. |
| public String[] | Returns: the possible field names (optional if the index is provided)The possible field names of a record. |
| public int | Returns: the position of this field (optional if the field name is provided)Field position in a parsed record |
| applyDefaultConversion | back to summary |
|---|---|
| public boolean applyDefaultConversion() Flag to indicate whether the parsed field should be converted automatically based on the field type. For example,
if the annotated field is a
| |
| defaultNullRead | back to summary |
|---|---|
| public String defaultNullRead() The default value to assign to this field in the parsed value is null The String literal "null" will be interpreted as a regular null. Use "'null"' if you want the default value to be the string "null" this value will have different effects depending on the field type:
| |
| defaultNullWrite | back to summary |
|---|---|
| public String defaultNullWrite() The default value to read from this field if it is null. Used for writing to an output by The String literal "null" will be interpreted as a regular Use "'null"' if you want the default value to be the string
| |
| field | back to summary |
|---|---|
| public String[] field() The possible field names of a record. If multiple names are provided, the parser/writer will
attempt to match the given names against the headers provided (i.e. headers found in the input when parsing with
| |
| index | back to summary |
|---|---|
| public int index() Field position in a parsed record
| |