org.apache.lucene.analysis
Class MappingCharFilter
java.lang.Object
java.io.Reader
org.apache.lucene.analysis.CharStream
org.apache.lucene.analysis.CharFilter
org.apache.lucene.analysis.BaseCharFilter
org.apache.lucene.analysis.MappingCharFilter
- All Implemented Interfaces:
- Closeable, Readable
public class MappingCharFilter
- extends BaseCharFilter
Simplistic CharFilter
that applies the mappings
contained in a NormalizeCharMap
to the character
stream, and correcting the resulting changes to the
offsets.
Method Summary |
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingCharFilter
public MappingCharFilter(NormalizeCharMap normMap,
CharStream in)
- Default constructor that takes a
CharStream
.
MappingCharFilter
public MappingCharFilter(NormalizeCharMap normMap,
Reader in)
- Easy-use constructor that takes a
Reader
.
read
public int read()
throws IOException
- Overrides:
read
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Overrides:
read
in class CharFilter
- Throws:
IOException
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.