edu.mayo.informatics.indexer.lucene.filters
Class EncoderFilter

java.lang.Object
  extended by org.apache.lucene.analysis.TokenStream
      extended by org.apache.lucene.analysis.TokenFilter
          extended by edu.mayo.informatics.indexer.lucene.filters.EncoderFilter

public final class EncoderFilter
extends org.apache.lucene.analysis.TokenFilter


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
EncoderFilter(org.apache.lucene.analysis.TokenStream in, org.apache.commons.codec.Encoder encoder)
           
 
Method Summary
 org.apache.lucene.analysis.Token next()
          This implementation calls encode() on every term, and returns a new term with the result.
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close, reset
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncoderFilter

public EncoderFilter(org.apache.lucene.analysis.TokenStream in,
                     org.apache.commons.codec.Encoder encoder)
Method Detail

next

public final org.apache.lucene.analysis.Token next()
                                            throws java.io.IOException
This implementation calls encode() on every term, and returns a new term with the result.

Overrides:
next in class org.apache.lucene.analysis.TokenStream
Throws:
java.io.IOException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.