hu.soft4d.util
Class StringUtil

java.lang.Object
  extended by hu.soft4d.util.StringUtil

public class StringUtil
extends java.lang.Object

Author:
Zsolt Kiss Gere, 4D Soft Ltd.

Constructor Summary
StringUtil()
           
 
Method Summary
static java.lang.String arrayToString(java.lang.StringBuffer sb, java.lang.Object[] arr)
           
static void main(java.lang.String[] args)
           
static java.lang.String replaceWord(java.lang.String str, java.lang.String target, java.lang.String replacement)
          Replaces in str all occurences of the whole word target with replacement and returns the result.
static java.lang.String trimSpaces(java.lang.String body)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

trimSpaces

public static java.lang.String trimSpaces(java.lang.String body)

replaceWord

public static java.lang.String replaceWord(java.lang.String str,
                                           java.lang.String target,
                                           java.lang.String replacement)
Replaces in str all occurences of the whole word target with replacement and returns the result. str is left unchanged.


arrayToString

public static java.lang.String arrayToString(java.lang.StringBuffer sb,
                                             java.lang.Object[] arr)

main

public static void main(java.lang.String[] args)