org.enhydra.barracuda.core.util
Class StringUtil

java.lang.Object
  |
  +--org.enhydra.barracuda.core.util.StringUtil

public class StringUtil
extends java.lang.Object

Simple utility functions that work on Strings


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
StringUtil()
           
 
Method Summary
static java.lang.String replace(java.lang.String sourceStr, java.lang.String oldPattern, java.lang.String newPattern)
          Replace all occurences of a pattern in a String with a new pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

StringUtil

public StringUtil()
Method Detail

replace

public static java.lang.String replace(java.lang.String sourceStr,
                                       java.lang.String oldPattern,
                                       java.lang.String newPattern)
Replace all occurences of a pattern in a String with a new pattern

Parameters:
sourceStr - the source string
oldPattern - the old pattern
newPattern - the new pattern
Returns:
an adjusted String


Copyright © 2001 Enhydra.org