org.das2.qds.util.AsciiParser.RecordParser


fieldCount

fieldCount( ) → int

indicate the number of fields this RecordParser is expecting on each line.

Returns:

the field count.

search for examples view on GitHub view source


splitRecord

splitRecord( String line, java.lang.String[] fields ) → boolean

attempts to extract fields from the record, returning true if the record could be split.

Parameters

line - the line from the file.
fields - array to store the fields. fieldCount() should be used to determine the length of the array.

Returns:

true if the line is a record that can be split into fields.

search for examples view on GitHub view source


tryParseRecord

tryParseRecord( String line, int irec, org.das2.qds.util.DataSetBuilder builder ) → boolean

returns true if the line appears to be a record. If it is a record, then the record is inserted into the builder.

Parameters

line - the line from the file.
irec - the record number
builder - the builder into which the data is inserted.

Returns:

true if the line appeared to be a record.

search for examples view on GitHub view source