tangentum technologies    
 

Deutsch

   
   
 
    PhoneticFilter (Phonetix)
Phonetix
v0.2

com.tangentum.phonetix.lucene
Class PhoneticFilter

java.lang.Object
  |
  +--org.apache.lucene.analysis.TokenStream
        |
        +--org.apache.lucene.analysis.TokenFilter
              |
              +--com.tangentum.phonetix.lucene.PhoneticFilter

public class PhoneticFilter
extends org.apache.lucene.analysis.TokenFilter

A PhoneticFilter is a TokenFilter according to the Lucene search-engine, which uses a PhoneticEncoder.

Author:
Claus Engel
See Also:
PhoneticAnalyzer

Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
PhoneticFilter(org.apache.lucene.analysis.TokenStream in, PhoneticEncoder phoneticEncoder)
          Constructs a filter which encodes words from the input TokenStream using the given phonetic encoder.
PhoneticFilter(org.apache.lucene.analysis.TokenStream in, PhoneticEncoder[] phoneticEncoder)
          Constructs a filter which encodes words from the input TokenStream using the given phonetic encoder.
 
Method Summary
 org.apache.lucene.analysis.Token next()
          Returns the next token in the stream, or null at EOF.
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneticFilter

public PhoneticFilter(org.apache.lucene.analysis.TokenStream in,
                      PhoneticEncoder phoneticEncoder)
Constructs a filter which encodes words from the input TokenStream using the given phonetic encoder. If no encoder is given, i.e. if it is null, no encoding takes place and the input TokenStream remains unchanged.


PhoneticFilter

public PhoneticFilter(org.apache.lucene.analysis.TokenStream in,
                      PhoneticEncoder[] phoneticEncoder)
Constructs a filter which encodes words from the input TokenStream using the given phonetic encoder. If no encoder is given, i.e. if it is null, no encoding takes place and the input TokenStream remains unchanged.

Method Detail

next

public org.apache.lucene.analysis.Token next()
                                      throws java.io.IOException
Returns the next token in the stream, or null at EOF.

Specified by:
next in class org.apache.lucene.analysis.TokenStream
java.io.IOException

Phonetix
v0.2

Copyright © 1996-2003 Claus Engel. All Rights Reserved.