public final class ValidatingTokenFilter extends TokenFilter
AttributeSource.State
input
DEFAULT_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() |
close
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public ValidatingTokenFilter(TokenStream in, String name)
public boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
public void end() throws IOException
end
in class TokenFilter
IOException
public void reset() throws IOException
reset
in class TokenFilter
IOException
public 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.