org.mbari.siam.moos.utils.chart.graph
Class ScanWord

This class extends the StreamTokenizer class. It allows words
to be defined and recognised and returned as a token. The TT_NUMBER
token of the StreamTokenizer is also modified so that scientific notation
is recognised.

getKeyValue(java.lang.String s)
return the matching token given the keyword

protected int

getNumber(java.lang.String s)
Check to see if the returned word is a number
The native StreamTokenizer number method does not work for
scientific notation so we us the Double class doubleValue() method

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.