Class ConcatenatingTokenStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class ConcatenatingTokenStream
    extends TokenStream
    A TokenStream that takes an array of input TokenStreams as sources, and concatenates them together.

    Offsets from the second and subsequent sources are incremented to behave as if all the inputs were from a single source.

    All of the input TokenStreams must have the same attribute implementations