com.rhi.architecture.lang
Class StringUtils

java.lang.Object
  extended bycom.rhi.architecture.lang.StringUtils

public class StringUtils
extends java.lang.Object

StringUtils

Version:
1.0
Author:
Pete McKinstry

Constructor Summary
StringUtils()
          Constructor for StringUtils.
 
Method Summary
static java.lang.String[] parseString(java.lang.String src)
          Uses comma as the default delimiter, calls parseString( src, "," ) internally.
static java.lang.String[] parseString(java.lang.String src, java.lang.String delim)
          Parses given string into an array of strings based on a delimiter.
static java.lang.String toLowerCase(java.lang.String str)
          This method runs about 20 times faster than java.lang.String.toLowerCase (and doesn't waste any storage when the result is equal to the input).
static java.lang.String toUpperCase(java.lang.String str)
          This method runs about 20 times faster than java.lang.String.toUpperCase (and doesn't waste any storage when the result is equal to the input).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Constructor for StringUtils.

Method Detail

toLowerCase

public static java.lang.String toLowerCase(java.lang.String str)
This method runs about 20 times faster than java.lang.String.toLowerCase (and doesn't waste any storage when the result is equal to the input). Warning: Don't use this method when your default locale is Turkey. java.lang.String.toLowerCase is slow because (a) it uses a StringBuffer (which has synchronized methods), (b) it initializes the StringBuffer to the default size, and (c) it gets the default locale every time to test for name equal to "tr".


toUpperCase

public static java.lang.String toUpperCase(java.lang.String str)
This method runs about 20 times faster than java.lang.String.toUpperCase (and doesn't waste any storage when the result is equal to the input). Warning: Don't use this method when your default locale is Turkey. java.lang.String.toUpperCase is slow because (a) it uses a StringBuffer (which has synchronized methods), (b) it initializes the StringBuffer to the default size, and (c) it gets the default locale every time to test for name equal to "tr".


parseString

public static java.lang.String[] parseString(java.lang.String src)
Uses comma as the default delimiter, calls parseString( src, "," ) internally.

Parameters:
src -
Returns:
See Also:
parseString( String, String )

parseString

public static java.lang.String[] parseString(java.lang.String src,
                                             java.lang.String delim)
Parses given string into an array of strings based on a delimiter. Returns an empty array of the input string is "".

Parameters:
src -
delim -
Returns:


Copyright © 2002-2004 Robert Half International. All Rights Reserved.