Package org.frankframework.batch
Interface IRecordHandler
- All Superinterfaces:
org.springframework.context.ApplicationContextAware,org.springframework.beans.factory.Aware,FrankElement,HasApplicationContext,HasName,IConfigurable,IScopeProvider,NameAware
- All Known Implementing Classes:
AbstractRecordHandler,RecordTransformer,RecordXml2Sender,RecordXmlTransformer
@FrankDocGroup(BATCH)
public interface IRecordHandler
extends IConfigurable, FrankElement, NameAware
Interface for transforming a record (= structured ASCII line).
- Author:
- John Dekker
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetRecordType(List<String> record) handleRecord(PipeLineSession session, List<String> parsedRecord) Perform an action on the array of fields.booleanisNewRecordType(PipeLineSession session, boolean equalRecordTypes, List<String> prevRecord, List<String> curRecord) voidopen()parse(PipeLineSession session, String record) Parse the line into an array of fields.Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.core.IConfigurable
configure
-
Method Details
-
open
- Throws:
SenderException
-
close
- Throws:
SenderException
-
parse
Parse the line into an array of fields.- Returns:
- List with String values for each inputfield
- Throws:
Exception
-
handleRecord
Perform an action on the array of fields.- Returns:
- transformed result
- Throws:
Exception
-
isNewRecordType
boolean isNewRecordType(PipeLineSession session, boolean equalRecordTypes, List<String> prevRecord, List<String> curRecord) throws Exception - Throws:
Exception
-
getRecordType
-
getRecordLength
int getRecordLength()- Returns:
- the length of the raw record, or -1 if it is unknown up front
-