|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mapper
Represents a mapping expression that gets a single value from a line of data. A typical mapping expression holds a reference to the column number or name, for example:
\1\ \row\ Row: \row\, Col:\col\ =2 * col('Radius')The actual syntax for the mapping string depends on the parser used.
FlatFileParser.getMapper(String)
Method Summary | |
---|---|
Float |
getFloat(FlatFileParser.Data data)
Get the value for the line of data as a float. |
Integer |
getInt(FlatFileParser.Data data)
Get the value for the line of data as an integer. |
String |
getValue(FlatFileParser.Data data)
Get the value for the line of data. |
Method Detail |
---|
String getValue(FlatFileParser.Data data)
data
- The line of data
Integer getInt(FlatFileParser.Data data)
data
- The line of data
NumberFormatException
- If the value can't be parsed as an integerFloat getFloat(FlatFileParser.Data data)
data
- The line of data
NumberFormatException
- If the value can't be parsed as a float
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |