Class StringUtils
- java.lang.Object
-
- org.jboss.arquillian.drone.webdriver.utils.StringUtils
-
public class StringUtils extends Object
Utility class to parse a list of strings- Author:
- Tomas Repel
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>tokenize(String stringToBeParsed)Parse string to tokens.static StringtrimMultiline(String toTrim)
-
-
-
Method Detail
-
tokenize
public static List<String> tokenize(String stringToBeParsed)
Parse string to tokens. Tokens are separated by whitespace. In case some token contains whitespace, the whole token has to be quoted. For instance string 'opt0 opt1=val1 "opt2=val2 with space"' results in three tokens.- Parameters:
stringToBeParsed- - string to be parsed to tokens- Returns:
- List of tokens, returns empty list rather that null value
-
-