FlatRecordWriter Class (Extends RecordWriter)
Overview
As is the case with the CSVRecordWriter class, the FlatRecordWriter is derived from the RecordWriter base class (see Chapter 6). The most important method developed in this class is the writeRecord method. We use the parseRecord method inherited from the RecordWriter base class.
Attributes:
Integer Fixed Record Length
Integer Record ID Field Offset
Integer Record ID Field Length
Methods:
Constructor
writeRecord
Methods
Constructor
The logic for the FlatRecordWriter constructor method is essentially the same as that for the FlatRecordReader.
Logic for the FlatRecordWriter Constructor Method
Arguments: DOM Document File Description Document Output Stream Call RecordWriter base class constructor, ... |
Get Using XML with Legacy Business Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.