com.slurm.gf
Class GFParser

java.lang.Object
  |
  +--com.slurm.gf.GFParser

public class GFParser
extends java.lang.Object

Class to parse a generic font file.

This parser is based on the gftype program by D. R. Fuchs.


Constructor Summary
GFParser(GFFile g, GFParserCallback c)
          Creates a GFParser object that reads commands from the given file and calls various methods on the given GFParserCallback object according to the commands that are encountered.
 
Method Summary
 void parse()
          Parses the file, calling methods of the callback as it goes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GFParser

public GFParser(GFFile g,
                GFParserCallback c)
Creates a GFParser object that reads commands from the given file and calls various methods on the given GFParserCallback object according to the commands that are encountered.
Parameters:
g - the file from which to read commands
c - the callback functions to execute when encountering commands
See Also:
GFFile, GFParserCallback
Method Detail

parse

public void parse()
Parses the file, calling methods of the callback as it goes.