org.das2.qds.util.AsciiParser.DelimParser

DelimParser splits the line on a regex (like "," or "\\s+") to create the fields. Trailing and leading whitespace is ignored.

DelimParser( int fieldCount, String delim )


header

fieldCount( ) → int [view source]
fieldCount( String line ) → int [view source]

getDelim

getDelim( ) → String

returns the delimiter, which is a regex. Examples include "," "\t", and "\s+"

Returns:

a String

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

readNextRecord( java.io.BufferedReader reader ) → String [view source]

setGuessUnits

setGuessUnits( boolean guess ) → void

if true, then try to guess the units of the data coming in. If most fields will be non-enumeration, then the flag is cleared.

Parameters

guess - a boolean

Returns:

void (returns nothing)

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

setShowException( boolean s ) → void [view source]
setSkipField( int ifield, boolean skip ) → void [view source]
splitRecord( String input, String[] fields ) → boolean [view source]
toString( ) → String [view source]
tryParseRecord( String line, int irec, org.das2.qds.util.DataSetBuilder builder ) → boolean [view source]