@FixedWidth annotation, along with the Parsed annotation, allows users to configure the length,
alignment and padding of fields parsed/written using the FixedWidthParser and FixedWidthWriter
Commonly used for java beans processed using BeanProcessor and/or BeanWriterProcessor
FixedWidthFields, FixedWidthParser, FixedWidthWriter, FixedWidthParserSettings, FixedWidthWriterSettings, BeanProcessor, BeanWriterProcessor
| Modifier and Type | Method and Description |
|---|---|
| public FieldAlignment | |
| public int | Returns: Defines the starting position of the fixed-width fieldDefines the starting position of the fixed-width field |
| public boolean | Returns: flag indicating the padding character should be kept in the parsed valueConfigures whether to retain the padding character when parsing values for this field
(defaults to |
| public char | Returns: padding of the fixed-width fieldSets the padding character of the fixed-width field |
| public int | Returns: Defines the end position of the fixed-width fieldDefines the end position of the fixed-width field |
| public int |
| alignment | back to summary |
|---|---|
| public FieldAlignment alignment() Sets the alignment of the fixed-width field
| |
| from | back to summary |
|---|---|
| public int from() Defines the starting position of the fixed-width field
| |
| keepPadding | back to summary |
|---|---|
| public boolean keepPadding() Configures whether to retain the padding character when parsing values for this field
(defaults to
| |
| padding | back to summary |
|---|---|
| public char padding() Sets the padding character of the fixed-width field
| |
| to | back to summary |
|---|---|
| public int to() Defines the end position of the fixed-width field
| |
| value | back to summary |
|---|---|
| public int value() Sets the length of the fixed-width field
| |