public class TokenRangeSinkFilter extends TeeSinkTokenFilter.SinkFilter
Constructor and Description |
---|
TokenRangeSinkFilter(int lower,
int upper) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(AttributeSource source)
Returns true, iff the current state of the passed-in
AttributeSource shall be stored
in the sink. |
void |
reset()
Called by
TeeSinkTokenFilter.SinkTokenStream.reset() . |
public boolean accept(AttributeSource source)
TeeSinkTokenFilter.SinkFilter
AttributeSource
shall be stored
in the sink.accept
in class TeeSinkTokenFilter.SinkFilter
public void reset() throws IOException
TeeSinkTokenFilter.SinkFilter
TeeSinkTokenFilter.SinkTokenStream.reset()
. This method does nothing by default
and can optionally be overridden.reset
in class TeeSinkTokenFilter.SinkFilter
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.