Annotation Type FixedWidth
-
@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface FixedWidthThe@FixedWidthannotation, along with theParsedannotation, allows users to configure the length, alignment and padding of fields parsed/written using theFixedWidthParserandFixedWidthWriterCommonly used for java beans processed using
BeanProcessorand/orBeanWriterProcessor
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description FieldAlignmentalignmentSets the alignment of the fixed-width fieldintfromDefines the starting position of the fixed-width fieldbooleankeepPaddingConfigures whether to retain the padding character when parsing values for this field (defaults tofalse)charpaddingSets the padding character of the fixed-width fieldinttoDefines the end position of the fixed-width fieldintvalueSets 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
-
-