Class PythonMessageParser<T>

    • Constructor Detail

      • PythonMessageParser

        public PythonMessageParser()
    • Method Detail

      • pythonExtension

        public void pythonExtension​(long pythonObject)
        Part of JCC Python interface to object
      • pythonExtension

        public long pythonExtension()
        Part of JCC Python interface to object
      • pythonDecRef

        public void pythonDecRef()
        Part of JCC Python interface to object
      • parseMessage

        public T parseMessage​(DataSource source)
        Parse a data source.
        Specified by:
        parseMessage in interface MessageParser<T>
        Parameters:
        source - data source to parse
        Returns:
        parsed file
      • reset

        public void reset​(FileFormat fileFormat)
        Reset parser to initial state before parsing.
        Specified by:
        reset in interface MessageParser<T>
        Parameters:
        fileFormat - format of the file ready to be parsed
      • process

        public void process​(ParseToken token)
        Process a parse token.
        Specified by:
        process in interface MessageParser<T>
        Parameters:
        token - token to process
      • build

        public T build()
        Description copied from interface: MessageParser
        Build the file from parsed entries.
        Specified by:
        build in interface MessageParser<T>
        Returns:
        parsed file
      • getFileFormat

        public FileFormat getFileFormat()
        Description copied from interface: MessageParser
        Get the file format of the last message parsed.
        Specified by:
        getFileFormat in interface MessageParser<T>
        Returns:
        file format of the last message parsed