Improved Javadoc.
This commit is contained in:
parent
ee947fc0de
commit
60aef46677
1 changed files with 14 additions and 3 deletions
|
@ -24,7 +24,7 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import fr.devinsy.util.strings.StringList;
|
import fr.devinsy.util.strings.StringList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Class SplitWorker.
|
* The Class SplitWorker.
|
||||||
*
|
*
|
||||||
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
|
@ -41,8 +41,19 @@ public class CommandSplitter
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(CommandSplitter.class);;
|
private static Logger logger = LoggerFactory.getLogger(CommandSplitter.class);;
|
||||||
|
|
||||||
/**
|
/** <p>Split a string command to an array managing quote and simple
|
||||||
* Split a string command to an array managing quote and simple quote.
|
* 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
|
* @param command
|
||||||
* the command
|
* the command
|
||||||
|
|
Loading…
Reference in a new issue