Class Date4ParseInfo


  • public class Date4ParseInfo
    extends DateTimeParseInfo
    This class is used to parse fields of type DATE4.
    • Constructor Detail

      • Date4ParseInfo

        public Date4ParseInfo()
    • Method Detail

      • parse

        public <T> IsoValue<java.util.Date> parse​(int field,
                                                  byte[] buf,
                                                  int pos,
                                                  CustomField<T> custom)
                                           throws java.text.ParseException,
                                                  java.io.UnsupportedEncodingException
        Description copied from class: FieldParseInfo
        Parses the character data from the buffer and returns the IsoValue with the correct data type in it.
        Specified by:
        parse in class FieldParseInfo
        Parameters:
        field - The field index, useful for error reporting.
        buf - The full ISO message buffer.
        pos - The starting position for the field data.
        custom - A CustomField to decode the field.
        Throws:
        java.text.ParseException
        java.io.UnsupportedEncodingException
      • parseBinary

        public <T> IsoValue<java.util.Date> parseBinary​(int field,
                                                        byte[] buf,
                                                        int pos,
                                                        CustomField<T> custom)
                                                 throws java.text.ParseException
        Description copied from class: FieldParseInfo
        Parses binary data from the buffer, creating and returning an IsoValue of the configured type and length.
        Specified by:
        parseBinary in class FieldParseInfo
        Parameters:
        field - The field index, useful for error reporting.
        buf - The full ISO message buffer.
        pos - The starting position for the field data.
        custom - A CustomField to decode the field.
        Throws:
        java.text.ParseException