seniorproj
Class ChooseFile

java.lang.Object
  extended by seniorproj.ChooseFile

public class ChooseFile
extends java.lang.Object

Class used to open saved Warehouse states and save current states. It filters for .txt files and when opening and saves to your current working directory when saving.

Author:
Steven Weigand

Constructor Summary
ChooseFile()
          Constructor used to initialize the filter for opening saved Warehouse states.
 
Method Summary
static void openFile(java.lang.String name, java.lang.String path)
          Parses through a text file containing a saved state of a data warehouse.
static void saveState()
          Saves the current state of the warehouse in a .txt file named WarehouseState.txt in your current working directory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChooseFile

public ChooseFile()
Constructor used to initialize the filter for opening saved Warehouse states.

Method Detail

openFile

public static void openFile(java.lang.String name,
                            java.lang.String path)
Parses through a text file containing a saved state of a data warehouse. When done parsing a warehouse will appear where it left off.

Parameters:
name - Name of the file to be opened
path - The path where the file can be found

saveState

public static void saveState()
Saves the current state of the warehouse in a .txt file named WarehouseState.txt in your current working directory.