FlatRecordReader Class (Extends RecordReader)
The FlatRecordReader introduces only a few new attributes but has some new and overridden methods. It inherits several attributes and methods from its RecordReader and RecordHandler base classes (see Chapter 6).
Integer Fixed Record Length
Integer Record ID Field Offset
Integer Record ID Field Length
In the FlatRecordReader constructor method, we primarily retrieve values from the file description document that the reader needs for processing. The logic should look familiar by now.
Logic for the FlatRecordReader Constructor Method
Arguments: DOM Document File Description ...