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)
                          throws IOException
        Resets the encapsulated components with the given reader. If the components cannot be reset, an Exception should be thrown.
        Parameters:
        reader - a reader to reset the source component
        Throws:
        IOException - if the component's reset method throws an IOException