All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fi.helsinki.cs.MapDrawer.MapDParser

java.lang.Object
   |
   +----fi.helsinki.cs.MapDrawer.MapDParser

public class MapDParser
extends Object
implements Runnable

Variable Index

 o c
 o caller
 o elements
 o hd
 o r
 o topnode

Constructor Index

 o MapDParser(URL)
The constructor.

Method Index

 o parseBlock()
 o parseProperties(ParseElement)
 o parseTag()
 o readBlock()
 o run()
Start parsing.
 o skipToStart()

Variables

 o r
 protected BufferedReader r
 o hd
 protected StringTokenizer hd
 o c
 protected StringTokenizer c
 o caller
 public MapDrawer caller
 o topnode
 public MapElement topnode
 o elements
 public static Hashtable elements

Constructors

 o MapDParser
 public MapDParser(URL source)
The constructor. Builds data connection.

Parameters:
source - The URL of the mapfile to be parsed.

Methods

 o run
 public void run()
Start parsing. Sets topnode to the map's top node when parsing is done.

 o skipToStart
 protected void skipToStart()
 o parseBlock
 protected ParseElement parseBlock()
 o parseProperties
 protected void parseProperties(ParseElement m)
 o parseTag
 protected ParseElement parseTag()
 o readBlock
 protected void readBlock()

All Packages  Class Hierarchy  This Package  Previous  Next  Index