de.novanic.eventservice.util
Class StringUtil

java.lang.Object
  extended by de.novanic.eventservice.util.StringUtil

public final class StringUtil
extends java.lang.Object

Utility class to provide String and parsing operations.

Author:
sstrohschein
Date: 05.03.2009
Time: 23:54:01

Method Summary
static boolean isNumeric(java.lang.String aString)
          Checks if the String is numeric (integer / long and comma or point separated).
static int readIntegerChecked(java.lang.String aValue)
          Returns the integer of the value and throws a ServiceUtilException when it isn't numeric (integer / long and comma or point separated).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isNumeric

public static boolean isNumeric(java.lang.String aString)
Checks if the String is numeric (integer / long and comma or point separated).

Parameters:
aString - String to check
Returns:
true when it is numeric (integer / long and comma or point separated), otherwise false

readIntegerChecked

public static int readIntegerChecked(java.lang.String aValue)
                              throws ServiceUtilException
Returns the integer of the value and throws a ServiceUtilException when it isn't numeric (integer / long and comma or point separated).

Parameters:
aValue - value to parse
Returns:
parsed integer
Throws:
ServiceUtilException - thrown when the value isn't numeric