public final class MockGraphTokenFilter extends LookaheadTokenFilter<LookaheadTokenFilter.Position>
LookaheadTokenFilter.PositionAttributeSource.Stateend, inputPos, offsetAtt, outputPos, posIncAtt, positions, posLenAttinputDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
MockGraphTokenFilter(Random random,
TokenStream input) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterPosition()
This is called when all input tokens leaving a given
position have been returned.
|
void |
close() |
boolean |
incrementToken() |
protected LookaheadTokenFilter.Position |
newPosition() |
void |
reset() |
insertToken, nextToken, peekTokenendaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic MockGraphTokenFilter(Random random, TokenStream input)
protected LookaheadTokenFilter.Position newPosition()
newPosition in class LookaheadTokenFilter<LookaheadTokenFilter.Position>protected void afterPosition()
throws IOException
LookaheadTokenFilterafterPosition in class LookaheadTokenFilter<LookaheadTokenFilter.Position>IOExceptionpublic void reset()
throws IOException
reset in class LookaheadTokenFilter<LookaheadTokenFilter.Position>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class TokenFilterIOExceptionpublic boolean incrementToken()
throws IOException
incrementToken in class TokenStreamIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.