gpl.pierrick.brihaye.aramorph.lucene
Class WhitespaceFilter

java.lang.Object
  extended byorg.apache.lucene.analysis.TokenStream
      extended byorg.apache.lucene.analysis.TokenFilter
          extended bygpl.pierrick.brihaye.aramorph.lucene.WhitespaceFilter

public final class WhitespaceFilter
extends org.apache.lucene.analysis.TokenFilter

Normalizes token text to whitespaces


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
WhitespaceFilter(org.apache.lucene.analysis.TokenStream input)
          Constructs a filter which tokenizes words from the input stream.
 
Method Summary
 org.apache.lucene.analysis.Token next()
          Returns the next word in the stream.
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhitespaceFilter

public WhitespaceFilter(org.apache.lucene.analysis.TokenStream input)
Constructs a filter which tokenizes words from the input stream.

Parameters:
input - The token stream from a tokenizer
Method Detail

next

public final org.apache.lucene.analysis.Token next()
                                            throws java.io.IOException
Returns the next word in the stream.

Returns:
The word
Throws:
java.io.IOException - If a problem occurs