net.sf.clichart.data
Class TimeDataParser
java.lang.Object
net.sf.clichart.data.AbstractDataParser
net.sf.clichart.data.TimeDataParser
- All Implemented Interfaces:
- DataParser
public class TimeDataParser
- extends AbstractDataParser
Implementation of a DataParser for time-based data, i.e. data where the X axis will be a date/time/datetime.
The xValue is passed to the sink as a Date.
Note that this class is not threadsafe.
- Author:
- johnd
|
Constructor Summary |
TimeDataParser(LineParser lineParser,
java.lang.String dateTimePattern,
int xColumnIndex,
int[] yColumnIndexes,
boolean hasHeader,
boolean ignoreMissingValues,
boolean ignoreEmptyValues,
DataSink sink)
|
|
Method Summary |
protected java.lang.Object |
parseXValueImpl(java.lang.String xValue,
int lineNumber)
Parse the provided X value, and return as an appropriate object, e.g. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeDataParser
public TimeDataParser(LineParser lineParser,
java.lang.String dateTimePattern,
int xColumnIndex,
int[] yColumnIndexes,
boolean hasHeader,
boolean ignoreMissingValues,
boolean ignoreEmptyValues,
DataSink sink)
parseXValueImpl
protected java.lang.Object parseXValueImpl(java.lang.String xValue,
int lineNumber)
throws InvalidDataException
- Description copied from class:
AbstractDataParser
- Parse the provided X value, and return as an appropriate object, e.g. Date, Integer, Double
- Specified by:
parseXValueImpl in class AbstractDataParser
- Throws:
InvalidDataException