utils
Class StringUtils

java.lang.Object
  extended by utils.StringUtils

public class StringUtils
extends java.lang.Object

This class provides methods for manipulating strings

Author:
Peter Hlavac

Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String replace(java.lang.String _text, java.lang.String _searchStr, java.lang.String _replacementStr)
          A String Replace function
static java.lang.String URLEncode(java.lang.String arg0)
          A helper method to encode urls.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

URLEncode

public static java.lang.String URLEncode(java.lang.String arg0)
                                  throws java.io.IOException
A helper method to encode urls. Alphanumerics [0-9a-zA-Z], special characters "$-_.+!*'()," [not including the quotes - ed], and reserved characters used for their reserved purposes may be used unencoded within a URL. All other characters are encoded as Hex Values

Parameters:
arg0 - the URL to encode
Returns:
the encoded url
Throws:
java.io.IOException - when Stream cannot be accessed

replace

public static java.lang.String replace(java.lang.String _text,
                                       java.lang.String _searchStr,
                                       java.lang.String _replacementStr)
A String Replace function

Parameters:
_text - The Text to look in for a Substring to replace it with the Replacement String
_searchStr - The SubString to look for in the Text
_replacementStr - The String that replaces the Search String
Returns:
Returns the modified String