com.northconcepts.datapipeline.transform
Class TransformingReader
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.core.ProxyReader
com.northconcepts.datapipeline.transform.TransformingReader
public class TransformingReader
- extends ProxyReader
A proxy that applies transformations to records passing 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 |
TransformingReader
public TransformingReader(DataReader reader)
isExceptionOnFailure
public boolean isExceptionOnFailure()
setExceptionOnFailure
public TransformingReader setExceptionOnFailure(boolean exceptionOnFailure)
isRecordStackTraceInMessage
public boolean isRecordStackTraceInMessage()
setRecordStackTraceInMessage
public TransformingReader setRecordStackTraceInMessage(boolean recordStackTraceInMessage)
add
public TransformingReader add(Transformer... transformer)
getCount
public int getCount()
get
public Transformer get(int index)
interceptRecord
protected Record interceptRecord(Record record)
throws Throwable
- Overrides:
interceptRecord in class ProxyReader
- Throws:
Throwable
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.