Class QuotedStringTokenizer
- java.lang.Object
-
- org.apache.accumulo.shell.commands.QuotedStringTokenizer
-
public class QuotedStringTokenizer extends Object implements Iterable<String>
A basic tokenizer for generating tokens from a string. It understands quoted strings and escaped quote characters. You can use the escape sequence '\' to escape single quotes, double quotes, and spaces only, in addition to the escape character itself. The behavior is the same for single and double quoted strings. (i.e. '\'' is the same as "\'")
-
-
Constructor Summary
Constructors Constructor Description QuotedStringTokenizer(String t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getTokens()Iterator<String>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
QuotedStringTokenizer
public QuotedStringTokenizer(String t) throws BadArgumentException
- Throws:
BadArgumentException
-
-