public interface InputTokenizer
Modifier and Type | Method and Description |
---|---|
static InputTokenizer |
quotedStrings(boolean forceLenient)
Use an input string tokenizer that supports quoted arguments and
character escapes.
|
static InputTokenizer |
rawInput()
Returns an input tokenizer that returns the input string as a single
argument.
|
static InputTokenizer |
spaceSplitString()
Returns an input tokenizer that takes input strings and splits them by
space.
|
List<SingleArg> |
tokenize(String arguments,
boolean lenient)
Take the input string and split it as appropriate into argument tokens.
|
static InputTokenizer quotedStrings(boolean forceLenient)
Forcing lenient to true makes the following apply:
forceLenient
- Whether the tokenizer is forced into lenient modestatic InputTokenizer spaceSplitString()
static InputTokenizer rawInput()
List<SingleArg> tokenize(String arguments, boolean lenient) throws ArgumentParseException
arguments
- The provided argumentslenient
- Whether to parse lenientlyArgumentParseException
- if an invalid input is provided