net.sourceforge.openutils.mgnlcriteria.utils
Class ASCIIFoldingFilter
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
net.sourceforge.openutils.mgnlcriteria.utils.ASCIIFoldingFilter
public class ASCIIFoldingFilter
- extends org.apache.lucene.analysis.TokenFilter
A filter backported da lucene 2.9.1 which converts any character variation into its ASCII equivalent.
- Version:
- $Id: ASCIIFoldingFilter.java 3285 2011-01-24 18:10:19Z fgiust $
- Author:
- fgiust
| Fields inherited from class org.apache.lucene.analysis.TokenFilter |
input |
|
Method Summary |
org.apache.lucene.analysis.Token |
next(org.apache.lucene.analysis.Token reusableToken)
|
void |
removeAccents(char[] input,
int length)
To replace accented characters in a String by unaccented equivalents. |
| 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 |
ASCIIFoldingFilter
public ASCIIFoldingFilter(org.apache.lucene.analysis.TokenStream input)
next
public final org.apache.lucene.analysis.Token next(org.apache.lucene.analysis.Token reusableToken)
throws IOException
- Overrides:
next in class org.apache.lucene.analysis.TokenStream
- Throws:
IOException
removeAccents
public final void removeAccents(char[] input,
int length)
- To replace accented characters in a String by unaccented equivalents.
Copyright © 2009-2011 Openmind. All Rights Reserved.