com.servingxml.components.flatfile.recordtype
Class CombineFlatRecordsReader

java.lang.Object
  extended by com.servingxml.components.flatfile.recordtype.CombineFlatRecordsReader
All Implemented Interfaces:
FlatRecordReader

public class CombineFlatRecordsReader
extends java.lang.Object
implements FlatRecordReader


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.servingxml.components.flatfile.FlatRecordReader
FlatRecordReader.NullFlatRecordReader
 
Field Summary
 
Fields inherited from interface com.servingxml.components.flatfile.FlatRecordReader
NULL
 
Constructor Summary
CombineFlatRecordsReader(NameSubstitutionExpr recordTypeNameExpr, Name repeatingGroupName, GroupRecognizer groupRecognizer, FlatRecordReader defaultRecordReader, FlatRecordReader dataRecordReader)
           
 
Method Summary
 int calculateFixedRecordLength(Record parameters, Record currentRecord)
           
 void endReadRecords(ServiceContext context, Flow flow, DelimiterExtractor[] recordDelimiters, int recordDelimiterStart, int recordDelimiterCount, int maxRecordWidth, RecordReceiver receiver)
           
 void readRecord(ServiceContext context, Flow flow, RecordInput segmentInput, DelimiterExtractor[] recordDelimiters, int recordDelimiterStart, int recordDelimiterCount, int maxRecordWidth, RecordReceiver receiver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombineFlatRecordsReader

public CombineFlatRecordsReader(NameSubstitutionExpr recordTypeNameExpr,
                                Name repeatingGroupName,
                                GroupRecognizer groupRecognizer,
                                FlatRecordReader defaultRecordReader,
                                FlatRecordReader dataRecordReader)
Method Detail

readRecord

public void readRecord(ServiceContext context,
                       Flow flow,
                       RecordInput segmentInput,
                       DelimiterExtractor[] recordDelimiters,
                       int recordDelimiterStart,
                       int recordDelimiterCount,
                       int maxRecordWidth,
                       RecordReceiver receiver)
Specified by:
readRecord in interface FlatRecordReader

endReadRecords

public void endReadRecords(ServiceContext context,
                           Flow flow,
                           DelimiterExtractor[] recordDelimiters,
                           int recordDelimiterStart,
                           int recordDelimiterCount,
                           int maxRecordWidth,
                           RecordReceiver receiver)
Specified by:
endReadRecords in interface FlatRecordReader

calculateFixedRecordLength

public int calculateFixedRecordLength(Record parameters,
                                      Record currentRecord)
Specified by:
calculateFixedRecordLength in interface FlatRecordReader