Class TempFinder

java.lang.Object
  extended by TempFinder

public class TempFinder
extends Object

Class to find the temperature in a web page.

Author:
Barb Ericson

Constructor Summary
TempFinder()
           
 
Method Summary
 String getTemp(String fileName)
          Method to find the temperature in the passed file
 String getTempFromNetwork(String urlStr)
          Method to get the temperature from a network
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempFinder

public TempFinder()
Method Detail

getTemp

public String getTemp(String fileName)
Method to find the temperature in the passed file

Parameters:
fileName - the name of the file to look in

getTempFromNetwork

public String getTempFromNetwork(String urlStr)
Method to get the temperature from a network

Parameters:
urlStr - the url as a string
Returns:
the temperature as a string

main

public static void main(String[] args)