LimitTokenOffsetFilter

constructor(input: TokenStream, maxStartOffset: Int)

Lets all tokens pass through until it sees one with a start offset <= maxStartOffset which won't pass and ends the stream. It won't consume any tokens afterwards.

Parameters

maxStartOffset

the maximum start offset allowed


constructor(input: TokenStream, maxStartOffset: Int, consumeAllTokens: Boolean)