haifa.shopsim.lab
Class DataFileWriter

java.lang.Object
  |
  +--haifa.shopsim.lab.DataFileWriter

public class DataFileWriter
extends java.lang.Object


Constructor Summary
DataFileWriter()
           
 
Method Summary
static void main(java.lang.String[] args)
          Gets input files names at prompt, followed by the outfile name.
private static java.lang.String onlyClassName(java.lang.String fullName)
           
private static void printStory(java.io.PrintWriter pw, RichShopStatistics rss)
           
private static void printToFile(java.io.FileWriter fw, RichShopStatistics rss)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

DataFileWriter

public DataFileWriter()
Method Detail

onlyClassName

private static java.lang.String onlyClassName(java.lang.String fullName)

printToFile

private static void printToFile(java.io.FileWriter fw,
                                RichShopStatistics rss)

printStory

private static void printStory(java.io.PrintWriter pw,
                               RichShopStatistics rss)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Gets input files names at prompt, followed by the outfile name. May exit with a variety of exceptions.