org.sblim.cimclient.internal.util
Class Util

java.lang.Object
  extended by org.sblim.cimclient.internal.util.Util

public class Util
extends Object

Class Util is responsible for storing commonly used static methods.


Constructor Summary
Util()
           
 
Method Summary
static boolean isBadDoubleString(String s)
          isBadDoubleString checks if passed string could hang JVM.
static String quote(String pStr)
          Quotes the passed string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

quote

public static String quote(String pStr)
Quotes the passed string.

Parameters:
pStr -
Returns:
the quoted string

isBadDoubleString

public static boolean isBadDoubleString(String s)
isBadDoubleString checks if passed string could hang JVM.

Parameters:
s - A string to be converted to a Double.
Returns:
true if double is in range of bad values, false otherwise.


Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.