public final class ValidatingTokenFilter
extends org.apache.lucene.analysis.TokenFilter
| Constructor and Description |
|---|
ValidatingTokenFilter(org.apache.lucene.analysis.TokenStream in,
java.lang.String name,
boolean offsetsAreCorrect)
The name arg is used to identify this stage when
throwing exceptions (useful if you have more than one
instance in your chain).
|
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
boolean |
incrementToken() |
void |
reset() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic ValidatingTokenFilter(org.apache.lucene.analysis.TokenStream in,
java.lang.String name,
boolean offsetsAreCorrect)
public boolean incrementToken()
throws java.io.IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void end()
throws java.io.IOException
end in class org.apache.lucene.analysis.TokenFilterjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class org.apache.lucene.analysis.TokenFilterjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.