Class FixedWidthFormat

java.lang.Object
com.univocity.parsers.common.Format
com.univocity.parsers.fixed.FixedWidthFormat
All Implemented Interfaces:
Cloneable

public class FixedWidthFormat extends Format
The Fixed-Width format configuration. In addition to the default configuration in Format, the fixed-width format defines:
  • padding (defaults to ' '): the character used for filling unwritten spaces in a fixed-width record.

    e.g. if a field has a length of 5 characters, but the value is 'ZZ', the field should contain [ZZ ] (i.e. ZZ followed by 3 unwritten spaces).
    If the padding is set to '_', then the field will be written as [ZZ___]

See Also:
  • Field Details

    • padding

      private char padding
    • lookupWildcard

      private char lookupWildcard
  • Constructor Details

    • FixedWidthFormat

      public FixedWidthFormat()
  • Method Details