Class StrListAppenderBlock


  • public class StrListAppenderBlock
    extends PipelineBlock<String[],​Object>
    The PipelineBlock which appends its input to a user-supplied list.

    The list is set using output(List) method.

    • Constructor Detail

      • StrListAppenderBlock

        public StrListAppenderBlock()
        Creates the block. List can be configured using output(List) method.
    • Method Detail

      • output

        public void output​(List<List<Object>> output)
        Sets the output list.
        Parameters:
        output - The output list.
      • accept

        public void accept​(String[] elements,
                           boolean isLastPortion)
        Accepts a portion of input. isLastPortion parameter should be set if this is a last portion of the input. The method must not be called after the end of input: the call with isLastPortion == true is the last one.
        Specified by:
        accept in class PipelineBlock<String[],​Object>
        Parameters:
        elements - Portion of input.
        isLastPortion - Is this the last portion.