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

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.StringFilter

public class StringFilter
extends org.apache.lucene.analysis.TokenFilter

TokenFilter which splits tokens on given strings. Useful if I always want to split on something strange like "<:>".

Author:
Dan Armbrust

Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
StringFilter(org.apache.lucene.analysis.TokenStream in, java.lang.String stringToTokenizeOn)
           
 
Method Summary
 org.apache.lucene.analysis.Token next()
           
 
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

StringFilter

public StringFilter(org.apache.lucene.analysis.TokenStream in,
                    java.lang.String stringToTokenizeOn)
Method Detail

next

public org.apache.lucene.analysis.Token next()
                                      throws java.io.IOException
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.