FlatSourceConverter Class (Extends SourceConverter)

Overview

The FlatSourceConverter is the main driver for the actual conversion. It inherits all the attributes and methods of its base classes, the SourceConverter and Converter classes (see Chapter 6).

Attributes:

  • FlatRecordReader Object

  • Array of Strings Partner Array

  • Integer Partner Break Field Offset

  • Integer Partner Break Field Length

  • String Saved Partner ID

Methods:

  • Constructor

  • processFile

  • processGroup (added to SourceConverter base class)

  • testPartnerBreak

Methods

Constructor

The constructor method for our FlatSourceConverter object sets up that object as well as the FlatRecordReader object.

Logic for the FlatSourceConverter Constructor Method
 Arguments: Boolean Validation option String Output ...

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.