net.spy.info
Class Weather

java.lang.Object
  extended bynet.spy.SpyObject
      extended bynet.spy.info.Info
          extended bynet.spy.info.Weather

public class Weather
extends Info

Get Weather info from weather.com


Field Summary
 
Fields inherited from class net.spy.info.Info
arg, error, hinfo, info
 
Constructor Summary
Weather()
          Get an unitialized Weather object.
Weather(String zipCode)
          Get a Weather object.
 
Method Summary
protected  void getInfo()
          getInfo gets the data to be parsed.
static void main(String[] args)
           
protected  void parseInfo()
          parseInfo parses the data into the hinfo Hashtable object.
 String toString()
          Get a string representation of the Weather object.
 
Methods inherited from class net.spy.info.Info
deEntity, get, get, goodInfo, setArg, toXML
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Weather

public Weather(String zipCode)
Get a Weather object.

Parameters:
zipCode - zip code to look up weather for.

Weather

public Weather()
Get an unitialized Weather object.

Method Detail

toString

public String toString()
Get a string representation of the Weather object.

Overrides:
toString in class Info

parseInfo

protected void parseInfo()
                  throws Exception
Description copied from class: Info
parseInfo parses the data into the hinfo Hashtable object. It will be called when needed.

Specified by:
parseInfo in class Info
Throws:
Exception

getInfo

protected void getInfo()
                throws Exception
Description copied from class: Info
getInfo gets the data to be parsed.

Specified by:
getInfo in class Info
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception