NextApp Echo
App Container 1.0.5

nextapp.echoservlet.util
Class StringUtil

java.lang.Object
  extended bynextapp.echoservlet.util.StringUtil

public class StringUtil
extends java.lang.Object

A utility class for working with Strings.


Constructor Summary
private StringUtil()
          Non-instantiable class.
 
Method Summary
static java.lang.String replace(java.lang.String in, java.lang.String find, java.lang.String replace)
          Searches for specified text within a string and replaces occurrences with new text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

private StringUtil()
Non-instantiable class.

Method Detail

replace

public static java.lang.String replace(java.lang.String in,
                                       java.lang.String find,
                                       java.lang.String replace)
Searches for specified text within a string and replaces occurrences with new text.

Parameters:
in - The string to search and modify.
find - The text to be found and replaced.
replace - The text with which to replace instances of the text specified by the find parameter.
Returns:
A new string with instances of find having been replaced with replace.

NextApp Echo
App Container 1.0.5