org.sape.carboncontrib.utils
Class StringUtils

java.lang.Object
  extended byorg.sape.carboncontrib.utils.StringUtils

public class StringUtils
extends Object

String related utilities.


Field Summary
private static int BUF_LEN
           
private static String LINE_SEPARATOR
           
static String nl
          String representing a newline for this platform
 
Constructor Summary
StringUtils()
           
 
Method Summary
static String convertToString(Collection objects)
          Returns a string representation of a collection of objects.
static String convertToString(Collection objects, String delimiter)
          Returns a string representation of a collection of objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUF_LEN

private static final int BUF_LEN
See Also:
Constant Field Values

LINE_SEPARATOR

private static final String LINE_SEPARATOR
See Also:
Constant Field Values

nl

public static final String nl
String representing a newline for this platform

Constructor Detail

StringUtils

public StringUtils()
Method Detail

convertToString

public static String convertToString(Collection objects)
Returns a string representation of a collection of objects. The newline character is used as the delimiter.

Parameters:
objects - Collection of objects
Returns:
String representation of the collection

convertToString

public static String convertToString(Collection objects,
                                     String delimiter)
Returns a string representation of a collection of objects.

Parameters:
objects - Collection of objects
delimiter - delimiter to use between the elements of the collection
Returns:
String representation of the collection


Copyright 2003 Sapient Corporation. All Rights Reserved.