com.ice.util
Class StringUtilities
java.lang.Object
|
+--com.ice.util.StringUtilities
- public class StringUtilities
- extends java.lang.Object
Method Summary |
static java.lang.String[] |
argumentSubstitution(java.lang.String[] args,
java.util.Hashtable vars)
|
static java.lang.String |
join(java.lang.String[] strings,
java.lang.String sep)
|
static java.lang.String[] |
parseArgumentString(java.lang.String argStr)
|
static java.util.Vector |
parseArgumentVector(java.lang.String argStr)
|
static java.lang.String[] |
splitString(java.lang.String splitStr,
java.lang.String delim)
Split a string into a string array containing the substrings
between the delimiters. |
static java.lang.String |
stringSubstitution(java.lang.String argStr,
java.util.Hashtable vars)
|
static java.util.Vector |
vectorString(java.lang.String splitStr,
java.lang.String delim)
Split a string into a string Vector containing the substrings
between the delimiters. |
static java.lang.String[] |
vectorToStringArray(java.util.Vector sV)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtilities
public StringUtilities()
vectorToStringArray
public static java.lang.String[] vectorToStringArray(java.util.Vector sV)
splitString
public static java.lang.String[] splitString(java.lang.String splitStr,
java.lang.String delim)
- Split a string into a string array containing the substrings
between the delimiters.
NOTE This method WILL NOT return an empty
token at the end of the array that is returned, if the string
ends with the delimiter. If you wish to have a property string
array that ends with the delimiter return an empty string at
the end of the array, use
vectorString()
.
vectorString
public static java.util.Vector vectorString(java.lang.String splitStr,
java.lang.String delim)
- Split a string into a string Vector containing the substrings
between the delimiters.
NOTE This method WILL return an empty
token at the end of the array that is returned, if the string
ends with the delimiter.
join
public static java.lang.String join(java.lang.String[] strings,
java.lang.String sep)
argumentSubstitution
public static java.lang.String[] argumentSubstitution(java.lang.String[] args,
java.util.Hashtable vars)
stringSubstitution
public static java.lang.String stringSubstitution(java.lang.String argStr,
java.util.Hashtable vars)
parseArgumentString
public static java.lang.String[] parseArgumentString(java.lang.String argStr)
parseArgumentVector
public static java.util.Vector parseArgumentVector(java.lang.String argStr)
Copyright © 1997-2003, Timothy G. Endres, All Rights Reserved.