org.oddjob.arooa.utils
Class QuoteTokenizerFactory

java.lang.Object
  extended by org.oddjob.arooa.utils.QuoteTokenizerFactory
All Implemented Interfaces:
ArooaTokenizerFactory

public class QuoteTokenizerFactory
extends Object
implements ArooaTokenizerFactory

Provides a tokenizer where the token is a regular expression but where a quote character and escape character can be used.

Author:
rob

Constructor Summary
QuoteTokenizerFactory(String regexp, char quote, char escape)
           
 
Method Summary
 String getPattern()
           
 ArooaTokenizer newTokenizer()
          Provide a tokenizer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteTokenizerFactory

public QuoteTokenizerFactory(String regexp,
                             char quote,
                             char escape)
Method Detail

newTokenizer

public ArooaTokenizer newTokenizer()
Description copied from interface: ArooaTokenizerFactory
Provide a tokenizer.

Specified by:
newTokenizer in interface ArooaTokenizerFactory
Returns:

getPattern

public String getPattern()