com.dfamaj.textproc.xwm
Class MockTokenizer

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

public class MockTokenizer
extends java.lang.Object
implements com.dfamaj.textproc.xwm.Tokenizer

un mock.

Since:
2.0
Version:
2.0 -- 2007-02-01 -- $Revision$
Author:
David Andriana

Constructor Summary
MockTokenizer(java.lang.String[] texts)
          constructeur.
 
Method Summary
 com.dfamaj.textproc.xwm.Location getLocation()
          renvoie le positionnement courant.
 com.dfamaj.textproc.xwm.Token nextToken()
          renvoie le prochain token, ou null s'il n'y en a plus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockTokenizer

public MockTokenizer(java.lang.String[] texts)
constructeur.

Method Detail

getLocation

public com.dfamaj.textproc.xwm.Location getLocation()
renvoie le positionnement courant.

Specified by:
getLocation in interface com.dfamaj.textproc.xwm.Tokenizer

nextToken

public com.dfamaj.textproc.xwm.Token nextToken()
renvoie le prochain token, ou null s'il n'y en a plus.

Specified by:
nextToken in interface com.dfamaj.textproc.xwm.Tokenizer