All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.lotspiech.poker.GameFileTokenizer

java.lang.Object
   |
   +----com.lotspiech.poker.GameFileTokenizer

public class GameFileTokenizer
extends Object
This class is used to parse the "games.in" file, the file that lists the Video Machines and their payoff table.

Copyright 2001, 2002 by Jeffrey B. Lotspiech. This program is open source; it is licensed under the Common Public License Version 0.5.

Author:
Jeffrey B. Lotspiech

Variable Index

 o BOL
 o COPYRIGHT
 o EOL
 o in
 o quotes
 o spaces

Constructor Index

 o GameFileTokenizer(Reader)

Method Index

 o advancePastEOL()
 o nextToken()

Variables

 o COPYRIGHT
 private static final String COPYRIGHT
 o in
 private BufferedReader in
 o quotes
 private StringTokenizer quotes
 o spaces
 private StringTokenizer spaces
 o EOL
 private boolean EOL
 o BOL
 private boolean BOL

Constructors

 o GameFileTokenizer
 public GameFileTokenizer(Reader in)

Methods

 o advancePastEOL
 public void advancePastEOL() throws Exception
 o nextToken
 public String nextToken() throws Exception
Returns:
s null if at end of a logical line. If it still returns null after you have "advancePastEOL"; that means you are at end-of-file.

All Packages  Class Hierarchy  This Package  Previous  Next  Index