uk.org.ogsadai.common
Class StringUtils

java.lang.Object
  |
  +--uk.org.ogsadai.common.StringUtils

public class StringUtils
extends java.lang.Object

String utilities.


Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.CharSequence removeDuplicateWhitespace(java.lang.CharSequence inputStr)
          Removes all contiguous whitespace characters, replacing them with a single space.
static java.lang.String stringArrayToString(java.lang.String[] array, java.lang.String separator)
          Conjoin the strings in an array into a single string delimited by a separator.
 
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

stringArrayToString

public static java.lang.String stringArrayToString(java.lang.String[] array,
                                                   java.lang.String separator)
Conjoin the strings in an array into a single string delimited by a separator.

Parameters:
array -
separator -
Returns:
conjoined string.

removeDuplicateWhitespace

public static java.lang.CharSequence removeDuplicateWhitespace(java.lang.CharSequence inputStr)
Removes all contiguous whitespace characters, replacing them with a single space. Line terminators are treated like whitespace.