X12TargetConverter Class (Extends TargetConverter)

Overview

The X12TargetConverter is again very similar to the CSV and flat file target converters, but again we add some complexities due to the grammar differences and the requirement to create the X12 control segments.

Attributes:

  • None

Methods:

  • Constructor

  • processDocument

  • writeHeaders

  • writeTrailers

Methods

Constructor

The constructor method sets up the X12TargetConverter object and the X12 RecordWriter object.

Logic for the X12TargetConverter Constructor Method
 Arguments: Output Stream X12 Interchange Output file String File Description Document Name Call base class constructor, passing File Description Document Name Create X12RecordWriter object, passing: File Description DOM Document and 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.