Annotation Type FixedWidth
-
@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface FixedWidth
The@FixedWidth
annotation, along with theParsed
annotation, allows users to configure the length, alignment and padding of fields parsed/written using theFixedWidthParser
andFixedWidthWriter
Commonly used for java beans processed using
BeanProcessor
and/orBeanWriterProcessor
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description FieldAlignment
alignment
Sets the alignment of the fixed-width fieldint
from
Defines the starting position of the fixed-width fieldboolean
keepPadding
Configures whether to retain the padding character when parsing values for this field (defaults tofalse
)char
padding
Sets the padding character of the fixed-width fieldint
to
Defines the end position of the fixed-width fieldint
value
Sets the length of the fixed-width field
-
-
-
-
alignment
FieldAlignment alignment
Sets the alignment of the fixed-width field- Returns:
- alignment of the fixed-width field
- Default:
- com.univocity.parsers.fixed.FieldAlignment.LEFT
-
-