org.apache.lucene.analysis

Class 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)
Construct a token stream processing the given 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 org.apache.lucene.analysis.TokenStream

close, next

Constructor Details

KeywordTokenizer

public KeywordTokenizer(Reader input)
Construct a token stream processing the given input.

KeywordTokenizer

public KeywordTokenizer(Reader input,
                        int bufferSize)

Method Details

next

public Token next()
            throws IOException
Returns the next token in the stream, or null at EOS.
Overrides:
next in interface TokenStream

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