Class FixedLengthUnmarshallingContext

    • Constructor Detail

      • FixedLengthUnmarshallingContext

        public FixedLengthUnmarshallingContext()
    • Method Detail

      • setRecordValue

        public void setRecordValue​(java.lang.Object value)
        Description copied from class: UnmarshallingContext
        Sets the value of the record returned from the RecordReader
        Specified by:
        setRecordValue in class UnmarshallingContext
        Parameters:
        value - the record value read by a record reader
        See Also:
        RecordReader
      • getRecordLength

        public int getRecordLength()
        Returns the length of the record being unmarshalled.
        Returns:
        the record length
      • getFieldText

        public java.lang.String getFieldText​(java.lang.String name,
                                             int position,
                                             int length,
                                             int until)
        Returns the field text at the given position in the record.
        Parameters:
        name - the field name
        position - the position of the field in the record
        length - the field length, or -1 if the field is at the end of the record and unbounded
        until - the maximum position of the field as an offset of the field count, for example -2 to indicate the any position except the last two fields in the record
        Returns:
        the field text, or null if the record length is less than the position of the field