com.dfamaj.textproc.xwm
Class EmptyTokenizer

java.lang.Object
  extended by com.dfamaj.textproc.xwm.EmptyTokenizer
All Implemented Interfaces:
ThreadUnsafe, Tokenizer, java.io.Serializable

public final class EmptyTokenizer
extends java.lang.Object
implements Tokenizer, ThreadUnsafe, java.io.Serializable

itérateur sur aucun token.

Since:
2.0
Version:
2.0 -- 2007-02-04 -- $Revision$
Author:
David Andriana
See Also:
Serialized Form

Constructor Summary
EmptyTokenizer()
           
 
Method Summary
static Tokenizer getInstance()
          
renvoie l'instance unique de cette classe.
 Location getLocation()
          
lève une NotImplementedException.
static boolean isInstance(Tokenizer tokenizer)
          
renvoie true si le Tokenizer est en fait un EmptyTokenizer.
 Token nextToken()
          
renvoie null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyTokenizer

public EmptyTokenizer()
Method Detail

getInstance

public static Tokenizer getInstance()
renvoie l'instance unique de cette classe.


getLocation

public Location getLocation()
lève une NotImplementedException.

Specified by:
getLocation in interface Tokenizer

isInstance

public static boolean isInstance(Tokenizer tokenizer)
renvoie true si le Tokenizer est en fait un EmptyTokenizer.


nextToken

public Token nextToken()
                throws java.io.IOException
renvoie null.

Specified by:
nextToken in interface Tokenizer
Throws:
java.io.IOException