org.xulux.utils
Class StringUtils

java.lang.Object
  extended by org.xulux.utils.StringUtils

public class StringUtils
extends java.lang.Object

Version:
$Id: StringUtils.java,v 1.1 2005/12/18 12:58:15 mvdb Exp $
Author:
Martin van den Bemt

Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String capitalize(java.lang.String constraint)
          Capitalizes a string, which means the first character will be uppercase and the other characters will be lowercase.
static java.lang.String replace(java.lang.String value, java.lang.String replace, char c)
          Replace the specified string with the specified char
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

replace

public static java.lang.String replace(java.lang.String value,
                                       java.lang.String replace,
                                       char c)
Replace the specified string with the specified char

Parameters:
value - the value to do the magic on
replace - the value to replace
c - the char to replace it with
Returns:
a new string with replacements

capitalize

public static java.lang.String capitalize(java.lang.String constraint)
Capitalizes a string, which means the first character will be uppercase and the other characters will be lowercase.

Parameters:
constraint -


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.