Class TokenizerFactory

java.lang.Object
com.topologi.diffx.load.text.TokenizerFactory

public final class TokenizerFactory extends Object
Factory for tokenizers.

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

Version:
10 May 2010
  • Constructor Details

    • TokenizerFactory

      private TokenizerFactory()
      Creates a factory for tokenizers.
      Throws:
      NullPointerException - If the configuration is null.
  • Method Details

    • get

      public static TextTokenizer get(DiffXConfig config)
      Returns the text tokenizer.
      Parameters:
      config - The configuration to use.
      Returns:
      the corresponding tokenizer.
      Throws:
      NullPointerException - If the configuration is null.