Package edu.uiuc.ncsa.security.util.cli
Class CommandLineTokenizer
- java.lang.Object
- 
- edu.uiuc.ncsa.security.util.cli.CommandLineTokenizer
 
- 
- All Implemented Interfaces:
- Serializable
 
 public final class CommandLineTokenizer extends Object implements Serializable This is a very specific tokenizer for command lines from the Dumb gridFTP client. It pulls off the elements that are double-quote delimited (to allow for embedded blanks) and then tokenizes by spaces. The first word is assumed to be a command word and is translated to lower case. The others are not. This is intended to be instantiated once and reused. It preserves no state between calls.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected charquoteDelimiter
 - 
Constructor SummaryConstructors Constructor Description CommandLineTokenizer()CommandLineTokenizer(char quoteDelimiter)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetQuoteDelimiter()static voidmain(String[] args)voidsetQuoteDelimiter(char quoteDelimiter)Vectortokenize(String cl)tokenize with whatever the current quote delimiter is.Vectortokenize(String cl, char quoteDelimiter)Vectortokenize(String cl, String quoteDelimiter)
 
- 
- 
- 
Method Detail- 
getQuoteDelimiterpublic char getQuoteDelimiter() 
 - 
setQuoteDelimiterpublic void setQuoteDelimiter(char quoteDelimiter) 
 - 
mainpublic static void main(String[] args) 
 - 
tokenizepublic Vector tokenize(String cl) throws MalformedCommandException tokenize with whatever the current quote delimiter is. Default is double quotes.- Parameters:
- cl-
- Returns:
- Throws:
- MalformedCommandException
 
 - 
tokenizepublic Vector tokenize(String cl, String quoteDelimiter) throws MalformedCommandException - Throws:
- MalformedCommandException
 
 - 
tokenizepublic Vector tokenize(String cl, char quoteDelimiter) throws MalformedCommandException - Throws:
- MalformedCommandException
 
 
- 
 
-