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 FrankElement
addConfigWarningMethods inherited from interface HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface IConfigurable
configure
-
Method Details
-
open
- Throws:
SenderException
-
close
- Throws:
SenderException
-
parse
-
handleRecord
-
isNewRecordType
-
getRecordType
-
getRecordLength
int getRecordLength()- Returns:
- the length of the raw record, or -1 if it is unknown up front
-