CSVSourceConverter Class (Extends SourceConverter)

Overview

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

Attributes:

  • CSVRecordReader Object

  • Array of Strings Partner Array

  • String Schema Location URL

  • Integer Partner Break Column

  • String Saved Partner ID

  • Integer Document Break Column

  • String Saved Document ID

Methods:

  • Constructor

  • processFile

  • testDocumentBreak

  • testPartnerBreak

Methods

Constructor

The constructor method for our CSVSourceConverter object sets up that object, but most importantly it also sets up the CSVRecordReader object. Here's the logic for it.

Logic for ...

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.