org.opensolaris.opengrok.util
Class StringUtils

java.lang.Object
  extended by org.opensolaris.opengrok.util.StringUtils

public final class StringUtils
extends java.lang.Object

Various String utility methoids.


Method Summary
static boolean isOnlyWhitespace(java.lang.String str)
          Returns true if the string is empty or only includes whitespace characters.
static boolean isPossiblyJavaClass(java.lang.String s)
          Returns true if the string is possibly a full java class name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isOnlyWhitespace

public static boolean isOnlyWhitespace(java.lang.String str)
Returns true if the string is empty or only includes whitespace characters.

Parameters:
str - the string to be checked
Returns:
true if string is empty or only contains whitespace charadcters

isPossiblyJavaClass

public static boolean isPossiblyJavaClass(java.lang.String s)
Returns true if the string is possibly a full java class name

Parameters:
s - the string to be checked
Returns:
true if string could be a java class name