Class StreamTokenizer


  • public class StreamTokenizer
    extends Object
    Simple tokenizer that parses a string into a list of words. Words containing special characters or digits are ignored.
    Since:
    6.2
    Author:
    O. Kerpershoek, F. van der Meer
    • Constructor Detail

      • StreamTokenizer

        public StreamTokenizer​(Reader reader)
                        throws IOException
        Constructs the tokenizer with the reader providing the input.
        Parameters:
        reader - The reader providing the string that should be parsed.
        Throws:
        IOException - This exception is thrown when the reader could not be accessed.
    • Method Detail

      • getWords

        public String[] getWords()
        This method returns an array containing the words that were parsed from the reader.
        Returns:
        an array containing the words that were parsed from the reader.