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

fieldCount( ) → int

Returns:

int

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

fieldCount( String line ) → int

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

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]


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

setShowException( boolean s ) → void

Parameters

s - a boolean

Returns:

void (returns nothing)

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


setSkipField

setSkipField( int ifield, boolean skip ) → void

Parameters

ifield - an int
skip - a boolean

Returns:

void (returns nothing)

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


splitRecord

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

Parameters

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

Returns:

boolean

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


toString

toString( ) → String

Returns:

java.lang.String

[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]