| java.lang.Object org.mandarax.util.StringUtils
StringUtils | final public class StringUtils (Code) | | Contains useful string utilities.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.1 |
Method Summary | |
public static String[] | split(String txt, String sep) Split a string. | public static String | toString(Object[] objs) Get a print string for an array based on the
print strings of the objects. | public static String | toString(Collection coll) Get a print string for a collection based on the
print strings of the objects it contains. | public static String | toString(Iterator it) Get a print string for an iterator based on the
print strings of the objects. |
split | public static String[] split(String txt, String sep)(Code) | | Split a string. E.g., calling this method with "23"+"54","+" yields {"23","54"}
Parameters: txt - a string Parameters: sep - a separator an array of two strings or null if the separator has not be found |
toString | public static String toString(Object[] objs)(Code) | | Get a print string for an array based on the
print strings of the objects.
the produced string Parameters: objs - the objects |
toString | public static String toString(Collection coll)(Code) | | Get a print string for a collection based on the
print strings of the objects it contains.
the produced string Parameters: coll - a collection |
toString | public static String toString(Iterator it)(Code) | | Get a print string for an iterator based on the
print strings of the objects.
the produced string Parameters: it - an iterator (should be new initialized in order to make sure that we include all objects) |
|
|