com.aetrion.flickr.util
Class StringUtilities

java.lang.Object
  extended by com.aetrion.flickr.util.StringUtilities

public class StringUtilities
extends java.lang.Object

String utility methods.

Version:
$Id: StringUtilities.java,v 1.5 2009/07/23 20:41:03 x-mago Exp $
Author:
Anthony Eden

Field Summary
static java.util.regex.Pattern getterPattern
           
 
Method Summary
static java.lang.String join(java.util.Collection s, java.lang.String delimiter)
          Join the Collection of Strings using the specified delimiter.
static java.lang.String join(java.util.Collection s, java.lang.String delimiter, boolean doQuote)
          Join the Collection of Strings using the specified delimter and optionally quoting each
static java.lang.String join(java.lang.String[] s, java.lang.String delimiter)
          Join the array of Strings using the specified delimiter.
static java.lang.String join(java.lang.String[] s, java.lang.String delimiter, boolean doQuote)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getterPattern

public static final java.util.regex.Pattern getterPattern
Method Detail

join

public static java.lang.String join(java.lang.String[] s,
                                    java.lang.String delimiter)
Join the array of Strings using the specified delimiter.

Parameters:
s - The String array
delimiter - The delimiter String
Returns:
The joined String

join

public static java.lang.String join(java.lang.String[] s,
                                    java.lang.String delimiter,
                                    boolean doQuote)

join

public static java.lang.String join(java.util.Collection s,
                                    java.lang.String delimiter,
                                    boolean doQuote)
Join the Collection of Strings using the specified delimter and optionally quoting each

Parameters:
s - The String collection
delimiter - the delimiter String
doQuote - whether or not to quote the Strings
Returns:
The joined String

join

public static java.lang.String join(java.util.Collection s,
                                    java.lang.String delimiter)
Join the Collection of Strings using the specified delimiter.

Parameters:
s - The String collection
delimiter - The delimiter String
Returns:
The joined String


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.