java.lang.Objectorg.objectweb.telosys.util.Parts
Constructor Summary | |
Parts()
|
Method Summary | |
static java.lang.String[] |
getParts(java.lang.String s,
char cSeparator,
int iMaxParts)
Returns the differents parts of the given string |
static int[] |
getSeparators(java.lang.String str,
char cSeparator,
int iMaxSep)
Returns an array of separators positions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Parts()
Method Detail |
public static int[] getSeparators(java.lang.String str, char cSeparator, int iMaxSep)
str
- the string where to search the separatorscSeparator
- the separator characteriMaxSep
- the maximum number of separators
public static java.lang.String[] getParts(java.lang.String s, char cSeparator, int iMaxParts)
s
- the string to cutcSeparator
- the separator characteriMaxParts
- the maximum number of parts