Class Analyzer.TokenStreamComponents

    • Field Detail

      • source

        protected final Tokenizer source
        Original source of the tokens.
      • sink

        protected final TokenStream sink
        Sink tokenstream, such as the outer tokenfilter decorating the chain. This can be the source if there are no filters.
    • Method Detail

      • setReader

        protected void setReader​(Reader reader)
        Resets the encapsulated components with the given reader. If the components cannot be reset, an Exception should be thrown.
        reader - a reader to reset the source component