de.janrufmonitor.util.string
Class StringUtils

java.lang.Object
  extended by de.janrufmonitor.util.string.StringUtils

public class StringUtils
extends Object

This class provides string manipulation functions.

Author:
Thilo Brandt

Constructor Summary
StringUtils()
           
 
Method Summary
static String replaceString(String source, String search, String replace)
          Replaces a search string within the source string.
static String urlDecode(String s)
          URL encodes a string.
static String urlEncode(String s)
          URL decodes a string.
 
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

replaceString

public static String replaceString(String source,
                                   String search,
                                   String replace)
Replaces a search string within the source string.

Parameters:
source - the source string
search - the string to be replaced
replace - the replacement
Returns:
the manipulated string object

urlDecode

public static String urlDecode(String s)
URL encodes a string.

Parameters:
s - the string to be encoded.
Returns:
encoded string

urlEncode

public static String urlEncode(String s)
URL decodes a string.

Parameters:
s - the string to be decoded.
Returns:
decoded string


Copyright © 2010 by Thilo Brandt. All Rights Reserved.