All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class utils.LineListTokenizer

java.lang.Object
   |
   +----java.io.StreamTokenizer
           |
           +----utils.LineListTokenizer

public class LineListTokenizer
extends StreamTokenizer
File reading utility -- converts each non-empty line to a word list


Constructor Index

 o LineListTokenizer(Reader)
 o LineListTokenizer(String)

Method Index

 o list()
Parse the next non-empty line into an array of strings.
 o main(String[])
Test the class.

Constructors

 o LineListTokenizer
 public LineListTokenizer(String file) throws FileNotFoundException
 o LineListTokenizer
 public LineListTokenizer(Reader input)

Methods

 o list
 public String[] list() throws Exception
Parse the next non-empty line into an array of strings. Result is null when EOF, and otherwise has at least one element.

 o main
 public static void main(String args[]) throws Exception
Test the class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index