net.sf.eos.analyzer.lucene
Class LuceneTokenizerWrapper
java.lang.Object
net.sf.eos.analyzer.TokenFilter
net.sf.eos.analyzer.lucene.LuceneTokenizerWrapper
- All Implemented Interfaces:
- Tokenizer
public final class LuceneTokenizerWrapper
- extends TokenFilter
Wraps the functionality of the εοs Tokenizer for the
reuse of Lucene tokenizer.
- Author:
- Sascha Kohlmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneTokenizerWrapper
public LuceneTokenizerWrapper(org.apache.lucene.analysis.Tokenizer tokenizer)
- Creates a new wrapper.
- Parameters:
tokenizer - a Lucene tokenizer to reuse in the εοs
environment
LuceneTokenizerWrapper
public LuceneTokenizerWrapper(Tokenizer source,
org.apache.lucene.analysis.Tokenizer tokenizer)
- Creates a new wrapper.
- Parameters:
source - a εοs tokenizertokenizer - a Lucene tokenizer to reuse in the εοs
environment
next
public Token next()
throws TokenizerException
- Description copied from class:
TokenFilter
- Implementations should use
TokenFilter.getSource() to fetch the source
Tokenizer an handle the resulting Token.
- Specified by:
next in interface Tokenizer- Specified by:
next in class TokenFilter
- Returns:
- the next token or
null
- Throws:
TokenizerException - if an error occurs
Copyright © 2008. All Rights Reserved.