Package org.apache.lucene.analysis.fa
Class PersianCharFilter
- java.lang.Object
-
- java.io.Reader
-
- org.apache.lucene.analysis.CharFilter
-
- org.apache.lucene.analysis.fa.PersianCharFilter
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class PersianCharFilter extends CharFilter
CharFilter that replaces instances of Zero-width non-joiner with an ordinary space.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.analysis.CharFilter
input
-
-
Constructor Summary
Constructors Constructor Description PersianCharFilter(java.io.Reader in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
correct(int currentOff)
Subclasses override to correct the current offset.int
read()
int
read(char[] cbuf, int off, int len)
-
Methods inherited from class org.apache.lucene.analysis.CharFilter
close, correctOffset
-
-
-
-
Method Detail
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException
- Specified by:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
correct
protected int correct(int currentOff)
Description copied from class:CharFilter
Subclasses override to correct the current offset.- Specified by:
correct
in classCharFilter
- Parameters:
currentOff
- current offset- Returns:
- corrected offset
-
-