org.apache.lucene.analysis
Class KeywordTokenizer

java.lang.Object
  extended by org.apache.lucene.analysis.TokenStream
      extended by org.apache.lucene.analysis.Tokenizer
          extended by org.apache.lucene.analysis.KeywordTokenizer

public class KeywordTokenizer
extends Tokenizer

Emits the entire input as a single token.


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Tokenizer
input
 
Constructor Summary
KeywordTokenizer(Reader input)
           
KeywordTokenizer(Reader input, int bufferSize)
           
 
Method Summary
 Token next()
          Returns the next token in the stream, or null at EOS.
 
Methods inherited from class org.apache.lucene.analysis.Tokenizer
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeywordTokenizer

public KeywordTokenizer(Reader input)

KeywordTokenizer

public KeywordTokenizer(Reader input,
                        int bufferSize)
Method Detail

next

public Token next()
           throws IOException
Description copied from class: TokenStream
Returns the next token in the stream, or null at EOS.

Specified by:
next in class TokenStream
Throws:
IOException


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