jwo.utils.dbase
Class NumberParser

java.lang.Object
  extended byjwo.utils.dbase.NumberParser

public final class NumberParser
extends Object

Various number parsing utilities. This code is based on the class provided as part of the Geotools OpenSource mapping toolkit - www.geotools.org/ under the GNU Lesser General Public License.

Version:
2.2, 8th November, 2004.
Author:
Geotools/GISToolkit modified by Jo Wood.

Constructor Summary
NumberParser()
           
 
Method Summary
 double doubleValue()
           
 double parseDouble(CharSequence s, int start, int end)
           
 double parseDouble(String s)
           
 int parseInt(CharSequence s, int start, int end)
           
 int parseInt(String s)
           
 long parseLong(CharSequence s, int start, int end)
           
 long parseLong(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberParser

public NumberParser()
Method Detail

parseInt

public int parseInt(String s)
             throws NumberFormatException
Throws:
NumberFormatException

parseInt

public int parseInt(CharSequence s,
                    int start,
                    int end)
             throws NumberFormatException
Throws:
NumberFormatException

parseLong

public long parseLong(String s)

parseLong

public long parseLong(CharSequence s,
                      int start,
                      int end)
               throws NumberFormatException
Throws:
NumberFormatException

parseDouble

public double parseDouble(String s)
                   throws NumberFormatException
Throws:
NumberFormatException

parseDouble

public double parseDouble(CharSequence s,
                          int start,
                          int end)
                   throws NumberFormatException
Throws:
NumberFormatException

doubleValue

public double doubleValue()


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005