ch.javasoft.util
Class StringUtil

java.lang.Object
  extended by ch.javasoft.util.StringUtil

public class StringUtil
extends Object

The StringUtil contains common constants and static utility methods concerning strings.


Field Summary
static String LINE_SEPARATOR
          Operating system dependant line separator
 
Method Summary
static String toTitleCase(String str)
          Converts a string to title case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SEPARATOR

public static final String LINE_SEPARATOR
Operating system dependant line separator

Method Detail

toTitleCase

public static String toTitleCase(String str)
Converts a string to title case. In the returned string, each word starts with a title (upper) case letter, all other word letters are lower case. For instance, passing "HELLo mY DoG" will be returned as "Hello My Dog". Null and empty string is returned unchanged.