Hilbert II - Version 0.03.04

org.qedeq.kernel.utility
Class ReplaceUtility

java.lang.Object
  extended byorg.qedeq.kernel.utility.ReplaceUtility

public final class ReplaceUtility
extends Object

A collection of useful static methods for string replacement.

Version:
$Revision: 1.7 $

Method Summary
static void replace(StringBuffer text, String search, String replace)
          Replaces all occurrences of search in text by replace and returns the result.
static String replace(String text, String search, String replace)
          Replaces all occurrences of search in text by replace and returns the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

replace

public static String replace(String text,
                             String search,
                             String replace)
Replaces all occurrences of search in text by replace and returns the result.

Parameters:
text - text to work on
search - replace this text by replace
replace - replacement for search
Returns:
resulting string

replace

public static void replace(StringBuffer text,
                           String search,
                           String replace)
Replaces all occurrences of search in text by replace and returns the result.

Parameters:
text - text to work on
search - replace this text by replace
replace - replacement for search

Hilbert II - Version 0.03.04

©left GNU General Public Licence
All Rights Reserved.