org.pentaho.platform.util
Class StringUtil
java.lang.Object
org.pentaho.platform.util.StringUtil
public class StringUtil
- extends java.lang.Object
Method Summary |
static boolean |
doesPathContainParentPathSegment(java.lang.String path)
Does the path contain a path-segment that is "..". |
static boolean |
isEmpty(java.lang.String str)
|
static void |
main(java.lang.String[] args)
|
static java.lang.String[] |
tokenStringToArray(java.lang.String tokenizedString,
java.lang.String token)
Tokenize a string and return a String Array of the values seperated by the passed in token. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tokenStringToArray
public static java.lang.String[] tokenStringToArray(java.lang.String tokenizedString,
java.lang.String token)
- Tokenize a string and return a String Array of the values seperated by the passed in token.
- Parameters:
tokenizedString
- The string to parse. If this is null, null will be returned.token
- The token used as a seperator. if this is null, the fill string will be returned in a 1 element array
- Returns:
- Array of Strings that were seperated by the token.
doesPathContainParentPathSegment
public static boolean doesPathContainParentPathSegment(java.lang.String path)
- Does the path contain a path-segment that is "..".
- Parameters:
path
- String
- Returns:
- boolean return true if path contains "..", else false.
main
public static void main(java.lang.String[] args)
isEmpty
public static boolean isEmpty(java.lang.String str)