
DelimitedParser |
org.ecoinformatics.util.DelimitedParser |
Parse an input string into an array of array of strings that
represent the rows and columns of a delimited string table.
It is assumed that each row of the ascii table ends with a '\n'
(i.e each row is on a single line) and columns are separated by
a 'delimiter' supplied on a port. All data in a column is of the
same type, but some columns may represent numbers, others strings,
etc. so all data is kept in string format here. Each row is a
string array; an array of arrays represents the whole table.
Author(s): Dan Higgins
Version:$Id: DelimitedParser.doc.html,v 1.1 2006/02/22 18:40:26 mangal Exp $
stringOutput
The output as a single array of strings separated by ','s
outputFormat
Parameter that stores a string indicating the format of the output
array. 'column' indicates an array of columns; 'row' indicates an
array of rows
delimiter
The string used to delimit colums,
include '\t'.
numberColumns
The number of columns to be assumed. This is used for cases
where there may be insufficient data or too much data. If missing
the number of tokens in the first row is used.
numberHeaderLines
The number of headerLines to be assumed. These lines are stripped.