Transaction System API

DataReader

Used for reading data from an Excel or CSV file one row at a time. This is useful when reading a large data file.

Method Summary
  closeReader()

Closes the reader and releases resources.

String[] getColumns()

Returns the column names obtained from the first line in the file.

  moveTo(int line)

Advances the reader to the specified record. This can be called only forward. Line 0 is the field names. Data records start at line 1.

Data readData()

Reads the next line of data. Returns null if there are no more rows to read.

String toString()

Returns a description of this object.

Method Detail


closeReader()

Closes the reader and releases resources.

Since: 11-20-2019

top

String[] getColumns()

Returns the column names obtained from the first line in the file.

Returns:  String[]

Since: 06-20-2020

top

moveTo(int line)

Advances the reader to the specified record. This can be called only forward. Line 0 is the field names. Data records start at line 1.

Parameters:

  • int   line

Since: 11-20-2019

top

Data readData()

Reads the next line of data. Returns null if there are no more rows to read.

Returns:  Data

Since: 11-20-2019

top

String toString()

Returns a description of this object.

Returns:  String

Since: 11-20-2019

top
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. API Date: May 01, 2024 05:15 AM