public class ParserUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
tokenize(String remainingBuffer)
Converts a particular buffer into a tokenized structure.
|
public static Map<String,String> tokenize(String remainingBuffer)
Properly treats double quotes (") as option delimiters.
Expects option names to be preceded by a single or double dash. We call this an "option marker".
Treats spaces as the default option tokenizer.
Any token without an option marker is considered the default. The default is returned in the Map as an element with an empty string key (""). There can only be a single default.
remainingBuffer - to tokenizeCopyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.