com.northconcepts.datapipeline.filter
Class FilteringReader
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.core.ProxyReader
com.northconcepts.datapipeline.filter.FilteringReader
- Direct Known Subclasses:
- ValidatingReader
public class FilteringReader
- extends ProxyReader
A proxy that applies filters to determine which records passes through.
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, toString |
FilteringReader
public FilteringReader(DataReader reader)
add
public FilteringReader add(Filter... filters)
getCurrentFilter
public Filter getCurrentFilter()
getCount
public int getCount()
get
public Filter get(int index)
remove
public FilteringReader remove(int index)
removeAll
public FilteringReader removeAll()
interceptRecord
protected Record interceptRecord(Record record)
throws Throwable
- Overrides:
interceptRecord in class ProxyReader
- Throws:
Throwable
discard
protected Record discard(Record record,
Filter filter)
addExceptionProperties
public DataException addExceptionProperties(DataException exception)
- Description copied from class:
DataEndpoint
- Adds this endpoint's current state to a
DataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.
- Overrides:
addExceptionProperties in class ProxyReader
Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.