code: public List<T> tokenize() {
      // System.out.println("tokenize called");
      List<T> result = new ArrayList<T>();
      while (hasNext()) {
        result.add(next());
      }
      return result;
    }
docs: Returns text as a List of tokens.
  
  @return A list of all tokens remaining in the underlying Reader