public class SimpleTokenize extends Object
Constructor and Description |
---|
SimpleTokenize() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] argv)
Implements a simple test
|
static String |
quotify(String str)
Constructs a valid quote-surrounded token All inside quotes are preceded by
\
|
static ArrayList<String> |
tokenize(String line)
Basic string tokenization, skipping over white spaces
|
static ArrayList<String> |
tokenize(String line,
String separators)
Basic string tokenization, skipping over white spaces
|
static ArrayList<String> |
tokenizeWithQuotes(String line)
String tokenization, considering everything within quotes as 1 token
Regular quotes inside tokens MUST be preceded by \
|
public static ArrayList<String> tokenize(String line)
public static ArrayList<String> tokenize(String line, String separators)
public static ArrayList<String> tokenizeWithQuotes(String line)
public static String quotify(String str)
public static void main(String[] argv)