org.apache.solr.analysis
Class TrimFilter

java.lang.Object
  extended by org.apache.lucene.analysis.TokenStream
      extended by org.apache.lucene.analysis.TokenFilter
          extended by org.apache.solr.analysis.TrimFilter

public final class TrimFilter
extends TokenFilter

Trims leading and trailing whitespace from Tokens in the stream.

Version:
$Id:$

Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
TrimFilter(TokenStream in, boolean updateOffsets)
           
 
Method Summary
 Token next()
           
 
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

TrimFilter

public TrimFilter(TokenStream in,
                  boolean updateOffsets)
Method Detail

next

public final Token next()
                 throws IOException
Overrides:
next in class TokenStream
Throws:
IOException


Copyright © 2006 - 2009 The Apache Software Foundation