org.pentaho.di.trans.steps.textfileinput
Class TextFileFilterProcessor

java.lang.Object
  extended by org.pentaho.di.trans.steps.textfileinput.TextFileFilterProcessor

public class TextFileFilterProcessor
extends Object

Processor of Filters. Kind of inversion principle, and to make unit testing easier.

Author:
Sven Boden

Constructor Summary
TextFileFilterProcessor(TextFileFilter[] filters)
           
 
Method Summary
 boolean doFilters(String line)
           
 boolean isStopProcessing()
          Was processing requested to be stopped.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileFilterProcessor

public TextFileFilterProcessor(TextFileFilter[] filters)
Parameters:
filters - The filters to process
Method Detail

doFilters

public boolean doFilters(String line)

isStopProcessing

public boolean isStopProcessing()
Was processing requested to be stopped. Can only be true when doFilters was false.

Returns:
== true: processing should stop, == false: processing should continue.