com.topologi.diffx.load.text
Class TokeniserFactory

java.lang.Object
  extended bycom.topologi.diffx.load.text.TokeniserFactory

public final class TokeniserFactory
extends Object

Factory for tokenisers.

This class is designed to returned tokenisers that corresponds to the given configuration.

Version:
27 April 2005
Author:
Christophe Lauret

Constructor Summary
TokeniserFactory(DiffXConfig config)
          Creates a factory for tokenisers.
 
Method Summary
 DiffXConfig getConfig()
          Returns the configuration used by this factory.
 TextTokeniser makeTokeniser(CharSequence text)
          Returns the text tokeniser for the specified text according to the configuration of this tokeniser.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokeniserFactory

public TokeniserFactory(DiffXConfig config)
                 throws NullPointerException
Creates a factory for tokenisers.

Parameters:
config - The configuration to use.
Throws:
NullPointerException - If the configuration is null.
Method Detail

makeTokeniser

public TextTokeniser makeTokeniser(CharSequence text)
Returns the text tokeniser for the specified text according to the configuration of this tokeniser.

Parameters:
text - The text to tokenise.
Returns:
The open element event from the uri and name given.

getConfig

public DiffXConfig getConfig()
Returns the configuration used by this factory.

Returns:
the configuration used by this factory.