public final class ValidatingTokenFilter extends TokenFilter
AttributeSource.StateinputDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
ValidatingTokenFilter(TokenStream in,
String name)
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 |
|---|---|
String |
dump() |
static void |
dumpValidatingTokenFilters(TokenStream in,
PrintStream out)
Prints details about consumed tokens stored in any ValidatingTokenFilters in the input chain
|
void |
end() |
boolean |
incrementToken() |
void |
reset() |
closeaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic ValidatingTokenFilter(TokenStream in, String name)
public boolean incrementToken()
throws IOException
incrementToken in class TokenStreamIOExceptionpublic void end()
throws IOException
end in class TokenFilterIOExceptionpublic void reset()
throws IOException
reset in class TokenFilterIOExceptionpublic static void dumpValidatingTokenFilters(TokenStream in, PrintStream out)
in - the input token streamout - the output print streampublic String dump()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.