com.panayotis.gnuplot.dataset.parser
Class DoubleDataParser

java.lang.Object
  extended by com.panayotis.gnuplot.dataset.parser.NumericDataParser
      extended by com.panayotis.gnuplot.dataset.parser.DoubleDataParser
All Implemented Interfaces:
DataParser

public class DoubleDataParser
extends NumericDataParser

Parser for Double data


Constructor Summary
DoubleDataParser()
          Create a new numeric data parser for Double values
DoubleDataParser(boolean first_column_date)
          Create a new Double data parser, with the information that the first column is in date format.
 
Method Summary
protected  boolean checkNumberFormat(java.lang.String format)
          Check whether this String represents a Double number
 
Methods inherited from class com.panayotis.gnuplot.dataset.parser.NumericDataParser
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleDataParser

public DoubleDataParser()
Create a new numeric data parser for Double values


DoubleDataParser

public DoubleDataParser(boolean first_column_date)
Create a new Double data parser, with the information that the first column is in date format.

Parameters:
first_column_date - Whether the first column is in date format
Method Detail

checkNumberFormat

protected boolean checkNumberFormat(java.lang.String format)
Check whether this String represents a Double number

Specified by:
checkNumberFormat in class NumericDataParser
Parameters:
format - the String containing the Double number
Returns:
True, if this is a representation of a Double number