public final class ValidatingTokenFilter
extends org.apache.lucene.analysis.TokenFilter
Constructor and Description |
---|
ValidatingTokenFilter(org.apache.lucene.analysis.TokenStream in,
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, toString
public ValidatingTokenFilter(org.apache.lucene.analysis.TokenStream in, String name, boolean offsetsAreCorrect)
public boolean incrementToken() throws IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
IOException
public void end() throws IOException
end
in class org.apache.lucene.analysis.TokenFilter
IOException
public void reset() throws IOException
reset
in class org.apache.lucene.analysis.TokenFilter
IOException