CSVRecordWriter Class (Extends RecordWriter)
Overview
The CSVRecordWriter class is derived from the RecordWriter base class (see Chapter 6). We have only a few extensions to that class. We use the parseRecord method inherited from the RecordWriter base class.
Attributes:
Character or Byte Column Delimiter
Character or Byte Text Delimiter
Methods:
Constructor
writeRecord
Methods
Constructor
Here is the logic for the CSVRecordWriter constructor method.
Logic for the CSVRecordWriter Constructor Method
Arguments: DOM Document File Description Document Output Stream Call RecordWriter base class constructor, passing File Description Document and Output Stream Record Terminator <- Get "RecordTerminator" Element's "value" Attribute from File Description ... |
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.