org.apache.lucene.analysis
public class ISOLatin1AccentFilter extends TokenFilter
For instance, 'à' will be replaced by 'a'.
input
Constructor and Description |
---|
ISOLatin1AccentFilter(TokenStream input) |
Modifier and Type | Method and Description |
---|---|
Token |
next(Token result)
Returns the next token in the stream, or null at EOS.
|
void |
removeAccents(char[] input,
int length)
To replace accented characters in a String by unaccented equivalents.
|
close
next, reset
public ISOLatin1AccentFilter(TokenStream input)
public final Token next(Token result) throws IOException
TokenStream
This implicitly defines a "contract" between consumers (callers of this method) and producers (implementations of this method that are the source for tokens):
Token.clear()
before setting the fields in it & returning itTokenFilter
is considered a consumer.next
in class TokenStream
result
- a Token that may or may not be used to returnIOException
public final void removeAccents(char[] input, int length)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.