Class AbstractObjectProcessor<T extends Context>

    • Constructor Detail

      • AbstractObjectProcessor

        public AbstractObjectProcessor()
    • Method Detail

      • rowProcessed

        public abstract void rowProcessed​(java.lang.Object[] row,
                                          T context)
        Invoked by the processor after all values of a valid record have been processed and converted into an Object array.
        Parameters:
        row - object array created with the information extracted by the parser and then converted.
        context - A contextual object with information and controls over the current state of the parsing process
      • processStarted

        public void processStarted​(T context)
        Description copied from interface: Processor
        This method will by invoked by the parser once, when it is ready to start processing the input.
        Specified by:
        processStarted in interface Processor<T extends Context>
        Parameters:
        context - A contextual object with information and controls over the current state of the parsing process
      • processEnded

        public void processEnded​(T context)
        Description copied from interface: Processor
        This method will by invoked by the parser once, after the parsing process stopped and all resources were closed.

        It will always be called by the parser: in case of errors, if the end of the input us reached, or if the user stopped the process manually using Context.stop().

        Specified by:
        processEnded in interface Processor<T extends Context>
        Parameters:
        context - A contextual object with information and controls over the state of the parsing process