org.sape.carboncontrib.utils
Class StringUtils
java.lang.Object
org.sape.carboncontrib.utils.StringUtils
- public class StringUtils
- extends Object
String related utilities.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
StringUtils
public StringUtils()
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 objectsdelimiter
- delimiter to use between the elements of the collection
- Returns:
- String representation of the collection
Copyright 2003 Sapient Corporation. All Rights Reserved.