gui
Class MapBox.SiteParser
java.lang.Object
javax.swing.text.html.HTMLEditorKit.ParserCallback
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.
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
IMPLIED |
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 |
MapBox.SiteParser
private MapBox.SiteParser()
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