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, toStringpublic ValidatingTokenFilter(org.apache.lucene.analysis.TokenStream in,
String name,
boolean offsetsAreCorrect)
public boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void end()
throws IOException
end in class org.apache.lucene.analysis.TokenFilterIOExceptionpublic void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenFilterIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.