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

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      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.XRefFilter
All Implemented Interfaces:
Closeable

public class XRefFilter
extends AbstractBookTokenFilter

A KeyFilter normalizes OSISrefs.

Author:
DM Smith
See Also:
The GNU Lesser General Public License for details.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State
 
Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
XRefFilter(Book book, org.apache.lucene.analysis.TokenStream in)
          Construct an XRefFilter tied to a Book.
XRefFilter(org.apache.lucene.analysis.TokenStream in)
          Construct filtering in.
 
Method Summary
 boolean incrementToken()
           
 
Methods inherited from class org.crosswire.jsword.index.lucene.analysis.AbstractBookTokenFilter
equals, getBook, hashCode, setBook
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close, end, reset
 
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, restoreState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XRefFilter

public XRefFilter(org.apache.lucene.analysis.TokenStream in)
Construct filtering in.

Parameters:
in -

XRefFilter

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

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

incrementToken

public boolean incrementToken()
                       throws IOException
Specified by:
incrementToken in class org.apache.lucene.analysis.TokenStream
Throws:
IOException

Copyright ยจ 2003-2015