org.easycsv.filter
Class NotLineFilter

java.lang.Object
  extended by org.easycsv.filter.NotLineFilter
All Implemented Interfaces:
LineFilter

public class NotLineFilter
extends java.lang.Object
implements LineFilter

Filter that negates the accept method of another LineFilter.

Version:
$LastChangedRevision:12 $
Author:
Oliver J. Siegmar

Constructor Summary
NotLineFilter(LineFilter lineFilter)
          Constructs this line filter.
 
Method Summary
 boolean accept(java.lang.String line)
          Tests whether or not the specified line should be read into the CsvDataStore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotLineFilter

public NotLineFilter(LineFilter lineFilter)
Constructs this line filter.

Parameters:
lineFilter - the filter to be negated.
Method Detail

accept

public boolean accept(java.lang.String line)
Tests whether or not the specified line should be read into the CsvDataStore.

Specified by:
accept in interface LineFilter
Parameters:
line - The CSV line to be tested
Returns:
true if the underlying line filter returns false. false if the underlying line filter returns true.


Copyright 2005-2005-2006 null. All Rights Reserved.