org.das2.qds.util.AsciiParser.FixedColumnsParser

Record parser looks at fixed column positions for each record.

FixedColumnsParser( int[] columnOffsets, int[] columnWidths )


fieldCount

fieldCount( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]

fieldCount( String line ) → int

fields

fields( String line ) → String[]

Parameters

line - a String

Returns:

java.lang.String[]

[search for examples] [view on GitHub] [view on old javadoc] [view source]


readNextRecord

readNextRecord( java.io.BufferedReader reader ) → String

Parameters

reader - a BufferedReader

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


splitRecord

splitRecord( String line, String[] fields ) → boolean

Parameters

line - a String
fields - a java.lang.String[]

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


tryParseRecord

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

Parameters

line - a String
irec - an int
builder - a DataSetBuilder

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]