org.apache.lucene.analysis
Class WhitespaceAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.lucene.analysis.WhitespaceAnalyzer

public final class WhitespaceAnalyzer
extends Analyzer

An Analyzer that uses WhitespaceTokenizer.


Constructor Summary
WhitespaceAnalyzer()
           
 
Method Summary
 TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
          Creates a TokenStream which tokenizes all the text in the provided Reader.
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPositionIncrementGap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhitespaceAnalyzer

public WhitespaceAnalyzer()
Method Detail

tokenStream

public TokenStream tokenStream(java.lang.String fieldName,
                               java.io.Reader reader)
Description copied from class: Analyzer
Creates a TokenStream which tokenizes all the text in the provided Reader. Default implementation forwards to tokenStream(Reader) for compatibility with older version. Override to allow Analyzer to choose strategy based on document and/or field. Must be able to handle null field name for backward compatibility.

Specified by:
tokenStream in class Analyzer


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.