rcs.utils
Class StrToInt

java.lang.Object
  extended by rcs.utils.StrToInt

public class StrToInt
extends java.lang.Object

Convert a string to an integer accepting a somewhat larger range of strings than String.parseInt() and adding some additional error printing.


Field Summary
static boolean bad_token
           
 
Constructor Summary
StrToInt()
           
 
Method Summary
static int convert(java.lang.String str)
           
static void ErrorPrint(java.lang.String s)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bad_token

public static boolean bad_token
Constructor Detail

StrToInt

public StrToInt()
Method Detail

ErrorPrint

public static void ErrorPrint(java.lang.String s)

convert

public static int convert(java.lang.String str)
                   throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

main

public static void main(java.lang.String[] args)