org.eobjects.sassy
Interface SasReaderCallback

All Known Implementing Classes:
CountReaderCallback

public interface SasReaderCallback

A callback interface for the SasReader that allows a data "target" to receive data and give instructions as to the further reading of a sas7bdat file.

Author:
Kasper Sørensen

Method Summary
 void column(int columnIndex, String columnName, String columnLabel, SasColumnType columnType, int columnLength)
          Callback method that accepts a column discovered by the SasReader .
 boolean readData()
          Should the reader read the data/rows (or only columns?)
 boolean row(int rowNumber, Object[] rowData)
          Callback method that accepts an array of row data.
 

Method Detail

column

void column(int columnIndex,
            String columnName,
            String columnLabel,
            SasColumnType columnType,
            int columnLength)
Callback method that accepts a column discovered by the SasReader .

Parameters:
columnIndex - the index (0-based) of the column
columnName - the physical name of the column
columnLabel - the logical label of the column (often more user-friendly than name)
columnType - the type of the column
columnLength - the length of the column

readData

boolean readData()
Should the reader read the data/rows (or only columns?)

Returns:
true if data/rows should be read.

row

boolean row(int rowNumber,
            Object[] rowData)
Callback method that accepts an array of row data.

Parameters:
rowNumber - the row number (1 = first row)
rowData - the row data
Returns:
true if more rows should be read.


Copyright © 2011-2012. All Rights Reserved.