Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6039

camel-bindy fixed length record improvements

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.0
    • 2.11.0
    • camel-bindy
    • None
    • Patch Available
    • Unknown

    Description

      The attached patch provides the following improvements for the camel-bindy fixed length record data format:

      • full support for fixed-length header and footer records
      • allows delimited (variable length) fields to be defined within "fixed-length" records
      • enables the length of a data field to be defined dynamically by another field in the same record
      • fixed-length records can be defined using ordinal / relative pos values

      New annotation properties:
      ------------------
      @DataField
      + lengthPos (int) – Optionally identifies a data field in the record that defines the fixed length for this field
      + delimiter (String) – Optional delimiter to be used if this field has a variable length

      @FixedLengthRecord
      + hasHeader (boolean) – Indicates that the record(s) of this type may be preceded by a single header record at the beginning of the file / stream
      + hasFooter (boolean) – Indicates that the record(s) of this type may be followed by a single footer record at the end of the file / stream
      + skipHeader (boolean) – Configures the data format to skip marshalling / unmarshalling of the header record
      + skipFooter (boolean) – Configures the data format to skip marshalling / unmarshalling of the footer record
      + isHeader (boolean) – Identifies this FixedLengthRecord as a header record
      + isFooter (boolean) – Identifies this FixedLengthRecord as a footer record

      Attachments

        1. CAMEL-6039.patch
          98 kB
          Rich Newcomb
        2. CAMEL-6039.patch2
          0.8 kB
          Rich Newcomb
        3. CAMEL-6039.patch3
          7 kB
          Rich Newcomb

        Activity

          People

            Unassigned Unassigned
            rnewcomb Rich Newcomb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: