com.rubecula.util
Class StringUtils

java.lang.Object
  extended bycom.rubecula.util.StringUtils

public class StringUtils
extends java.lang.Object

String utilities.

Since:
V_0_3
Version:
$Revision: 1.1 $
Author:
Robin Hillyard

Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String ReplaceFirst(java.lang.String string, java.lang.String before, java.lang.String after)
          This method is for quasi-compatibility with the String method ReplaceFirst available in Java 1.4.0 and later.
 
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

ReplaceFirst

public static java.lang.String ReplaceFirst(java.lang.String string,
                                            java.lang.String before,
                                            java.lang.String after)
This method is for quasi-compatibility with the String method ReplaceFirst available in Java 1.4.0 and later.
Note the difference that the before string here is an actual string, rather than a regular expression.

Parameters:
string - the string on which to operate.
before - the string which is to be replaced in string.
after - the replacement for before in string.
Returns:
a version of string with the first occurrence of before replaced by after.