Class LookaheadTokenMultiplexer<K,D,T,L>

java.lang.Object
eu.bandm.tools.lexic.LookaheadTokenMultiplexer<K,D,T,L>
Type Parameters:
K - the type of keys
D - the type of source document identifiers
T - the type of token types
L - the type of lookahead data
All Implemented Interfaces:
LookaheadTokenSource<D,T,L>, Closeable, AutoCloseable, Supplier<Token<D,T>>

public class LookaheadTokenMultiplexer<K,D,T,L> extends Object implements LookaheadTokenSource<D,T,L>
A multiplexer between token source channels with internal lookahead buffer, selected by a key.

Lookahead data is transferred automatically between sources upon switching.