Improved Javadoc.

This commit is contained in:
Christian P. MOMON 2017-05-12 18:49:33 +02:00
parent ee947fc0de
commit 60aef46677

View file

@ -41,8 +41,19 @@ public class CommandSplitter
private static Logger logger = LoggerFactory.getLogger(CommandSplitter.class);;
/**
* Split a string command to an array managing quote and simple quote.
/** <p>Split a string command to an array managing quote and simple
* quote.</p>
*
* <p>Examples:</p>
*
* <pre>
* CommandSplitter.split(null) = null
* CommandSplitter.split("") = { }
* CommandSplitter.split(" ") = { }
* CommandSplitter.split(" aaa bbb ") = { "aaa", "bbb" }
* CommandSplitter.split("aaa \"bb'b b\" ccc") = { "aaa", "bb'b b", "ccc" }
* CommandSplitter.split("aaa 'bb\"b b' ccc") = { "aaa", "bb\"b b", "ccc" }
* </pre>
*
* @param command
* the command