ps6
Class TextUI

java.lang.Object
  extended by ps6.TextUI

public class TextUI
extends Object

This class implements an interactive text-based interface for Husky Maps.


Constructor Summary
TextUI(String databaseName, List<String> zipcodes)
           
 
Method Summary
 void interactiveLoop(BufferedReader input, PrintStream output)
          TODO:Spec to be written by student.
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

TextUI

public TextUI(String databaseName,
              List<String> zipcodes)
Requires:
databaseName != null && zipcodes != null
Effects:
Creates a new TextUI which loads from databaseName and limits its search to the zipcodes given, unless the list is empty or null, in which case it searches over all zipcodes.
Method Detail

main

public static void main(String[] args)

interactiveLoop

public void interactiveLoop(BufferedReader input,
                            PrintStream output)
                     throws IOException
TODO:Spec to be written by student.

Throws:
IOException