org.das2.qds.util.AsciiParser.RegexParser

parser uses a regular expression to match each record.

RegexParser( org.das2.qds.util.AsciiParser parser, String regex )


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

show the fields found in the line. This assumes the line will match.

Parameters

line - a String

Returns:

the groups.

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


getNamedGroups

getNamedGroups( String regex ) → String[]

Parameters

regex - 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, java.lang.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]


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]