CSC407/ECE450 Assignment 1b Sample Solution

plan.input
Interface FileInput

All Known Implementing Classes:
TestInput

public interface FileInput

Interface for reading input data from a file


Method Summary
 Company readFile(java.lang.String filename)
          Read objects from the indicated file.
 

Method Detail

readFile

public Company readFile(java.lang.String filename)
                 throws java.io.FileNotFoundException,
                        java.io.IOException
Read objects from the indicated file.
Parameters:
filenane - the pathname of the file to read
Returns:
a Company root object to which all others are connected
Throws:
java.io.FileNotFoundException - when the file cannot be found
java.io.IOException - when the file cannot be read

CSC407/ECE450 Assignment 1b Sample Solution