public class Csv2Value extends Object implements NumericValue
| Modifier and Type | Field and Description |
|---|---|
AnyCharMatchFilter |
delimiterNotifier |
protected double |
doubleValue |
int |
fieldNumber
field number to extract value from, zero indexed
|
int |
headerLines
Number of headlines to ignore
|
protected long |
intermediateVal |
protected int |
intValue
the actual intValue
|
protected long |
longValue |
protected int |
pointIncrement
decimal point tracking
|
protected int |
pointPos
decimal point tracking
|
protected boolean |
processCharForParse
internal flag, if true the char event should be used for parsing the
intValue
|
protected int |
sign |
| Constructor and Description |
|---|
Csv2Value() |
Csv2Value(int fieldNumber) |
Csv2Value(int fieldNumber,
String terminatorChars,
int headerLines) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateValues() |
double |
doubleValue() |
void |
init() |
int |
intValue() |
long |
longValue() |
boolean |
on_0(CharEvent e) |
boolean |
on_1(CharEvent e) |
boolean |
on_2(CharEvent e) |
boolean |
on_3(CharEvent e) |
boolean |
on_4(CharEvent e) |
boolean |
on_5(CharEvent e) |
boolean |
on_6(CharEvent e) |
boolean |
on_7(CharEvent e) |
boolean |
on_8(CharEvent e) |
boolean |
on_9(CharEvent e) |
boolean |
onComma(CharEvent e) |
boolean |
onDelimiter(AnyCharMatchFilter terminatorNotifier) |
boolean |
onEol(CharEvent e) |
boolean |
onEvent() |
void |
onEventComplete() |
boolean |
onSign(CharEvent e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbyteValue, charValue, floatValue, shortValuepublic int fieldNumber
public int headerLines
protected transient int pointPos
protected transient int pointIncrement
protected transient boolean processCharForParse
protected transient int intValue
protected transient double doubleValue
protected transient long longValue
protected transient int sign
protected transient long intermediateVal
public AnyCharMatchFilter delimiterNotifier
public Csv2Value(int fieldNumber,
String terminatorChars,
int headerLines)
public Csv2Value(int fieldNumber)
public Csv2Value()
public boolean onEol(CharEvent e)
public boolean onDelimiter(AnyCharMatchFilter terminatorNotifier)
public boolean onEvent()
public void onEventComplete()
public boolean onComma(CharEvent e)
protected void calculateValues()
public boolean onSign(CharEvent e)
public boolean on_0(CharEvent e)
public boolean on_1(CharEvent e)
public boolean on_2(CharEvent e)
public boolean on_3(CharEvent e)
public boolean on_4(CharEvent e)
public boolean on_5(CharEvent e)
public boolean on_6(CharEvent e)
public boolean on_7(CharEvent e)
public boolean on_8(CharEvent e)
public boolean on_9(CharEvent e)
public int intValue()
intValue in interface NumericValuepublic long longValue()
longValue in interface NumericValuepublic double doubleValue()
doubleValue in interface NumericValuepublic void init()
Copyright © 2019. All rights reserved.