gui
Class MapBox.SiteParser

java.lang.Object
  extended by javax.swing.text.html.HTMLEditorKit.ParserCallback
      extended by gui.MapBox.SiteParser
Enclosing class:
MapBox

private class MapBox.SiteParser
extends javax.swing.text.html.HTMLEditorKit.ParserCallback

A subclass of javax.swing.text.html.HTMLEditorKit.ParserCallback that parses the HTML page requested from http://maps.yahoo.com and searches for the URL of the actual map image. As of June 2008, the page contains an img-tag that contains the actual URL:

<img id="map" name="map" src="<URL-of-the-map-image>">

The 'src'-attribute contains the real URL of the map image.


Field Summary
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
 
Constructor Summary
private MapBox.SiteParser()
           
 
Method Summary
 void handleSimpleTag(javax.swing.text.html.HTML.Tag t, javax.swing.text.MutableAttributeSet a, int pos)
           
 void handleStartTag(javax.swing.text.html.HTML.Tag t, javax.swing.text.MutableAttributeSet a, int pos)
           
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush, handleComment, handleEndOfLineString, handleEndTag, handleError, handleText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapBox.SiteParser

private MapBox.SiteParser()
Method Detail

handleSimpleTag

public void handleSimpleTag(javax.swing.text.html.HTML.Tag t,
                            javax.swing.text.MutableAttributeSet a,
                            int pos)
Overrides:
handleSimpleTag in class javax.swing.text.html.HTMLEditorKit.ParserCallback

handleStartTag

public void handleStartTag(javax.swing.text.html.HTML.Tag t,
                           javax.swing.text.MutableAttributeSet a,
                           int pos)
Overrides:
handleStartTag in class javax.swing.text.html.HTMLEditorKit.ParserCallback