Interface ExplicitStateHighlighter

    • Method Detail

      • setReader

        void setReader​(java.io.Reader reader)
        Sets the reader that will be used to receive the text data.
        Parameters:
        reader - the Reader that has to be used
      • getNextToken

        byte getNextToken()
                   throws java.io.IOException
        Obtain the next token from the scanner.
        Returns:
        one of the tokens that are define in the scanner
        Throws:
        java.io.IOException - when an error occurred during the parsing of the reader
      • getTokenLength

        int getTokenLength()
        Returns the length of the matched text region.
        Returns:
        the length of the matched text region