Interface MessageParser<T>

    • Method Detail

      • parseMessage

        T parseMessage​(DataSource source)
        Parse a data source.
        Parameters:
        source - data source to parse
        Returns:
        parsed file
      • getFormatVersionKey

        String getFormatVersionKey()
        Get the key for format version.
        Returns:
        format version key
      • getSpecialXmlElementsBuilders

        Map<String,​XmlTokenBuilder> getSpecialXmlElementsBuilders()
        Get the non-default token builders for special XML elements.
        Returns:
        map of token builders for special XML elements (keyed by XML element name)
      • reset

        void reset​(FileFormat fileFormat)
        Reset parser to initial state before parsing.
        Parameters:
        fileFormat - format of the file ready to be parsed
      • process

        void process​(ParseToken token)
        Process a parse token.
        Parameters:
        token - token to process
      • build

        T build()
        Build the file from parsed entries.
        Returns:
        parsed file
      • getFileFormat

        FileFormat getFileFormat()
        Get the file format of the last message parsed.
        Returns:
        file format of the last message parsed
        Since:
        12.0