org.crosswire.jsword.index.lucene.analysis
Class KeyFilter

java.lang.Object
  extended by org.apache.lucene.analysis.TokenStream
      extended by org.apache.lucene.analysis.TokenFilter
          extended by org.crosswire.jsword.index.lucene.analysis.AbstractBookTokenFilter
              extended by org.crosswire.jsword.index.lucene.analysis.KeyFilter

public class KeyFilter
extends AbstractBookTokenFilter

A KeyFilter normalizes Key.

Author:
DM Smith [dmsmith555 at yahoo dot com]
See Also:
for license details. The copyright to this program is held by it's authors.

Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
KeyFilter(Book book, org.apache.lucene.analysis.TokenStream in)
          Construct a KeyFilter tied to a Book.
KeyFilter(org.apache.lucene.analysis.TokenStream in)
          Construct a KeyFilter not tied to a Book.
 
Method Summary
 org.apache.lucene.analysis.Token next(org.apache.lucene.analysis.Token result)
           
 
Methods inherited from class org.crosswire.jsword.index.lucene.analysis.AbstractBookTokenFilter
getBook, setBook
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
next, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFilter

public KeyFilter(org.apache.lucene.analysis.TokenStream in)
Construct a KeyFilter not tied to a Book.

Parameters:
in - the input TokenStream

KeyFilter

public KeyFilter(Book book,
                 org.apache.lucene.analysis.TokenStream in)
Construct a KeyFilter tied to a Book.

Parameters:
book - the book to which this TokenFilter is tied.
in - the input TokenStream
Method Detail

next

public final org.apache.lucene.analysis.Token next(org.apache.lucene.analysis.Token result)
                                            throws IOException
Overrides:
next in class org.apache.lucene.analysis.TokenStream
Throws:
IOException

Copyright ยจ 2003-2007