org.apache.lucene.analysis.fa
Class PersianCharFilter

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by org.apache.lucene.analysis.CharFilter
              extended by org.apache.lucene.analysis.fa.PersianCharFilter
All Implemented Interfaces:
Closeable, 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 java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
PersianCharFilter(Reader in)
           
 
Method Summary
protected  int correct(int currentOff)
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class org.apache.lucene.analysis.CharFilter
correctOffset
 
Methods inherited from class java.io.FilterReader
close, mark, markSupported, read, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersianCharFilter

public PersianCharFilter(Reader in)
Method Detail

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Overrides:
read in class FilterReader
Throws:
IOException

correct

protected int correct(int currentOff)
Specified by:
correct in class CharFilter


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.