public class FileInterface
extends java.lang.Object
Constructor and Description |
---|
FileInterface(java.lang.String filename)
Opens the specified input file
|
Modifier and Type | Method and Description |
---|---|
void |
closeFile()
Closes the input file.
|
java.lang.String |
getName()
Returns data from the input file that will be used to build other objects.
|
void |
loadData()
Reads a line of the input file and stores the data.
|
public FileInterface(java.lang.String filename) throws java.io.FileNotFoundException
filename
- the name of the input filejava.io.FileNotFoundException
- if the file is not foundpublic void loadData() throws java.io.IOException
java.io.IOException
- for invalid I/Opublic void closeFile() throws java.io.IOException
java.io.IOException
- for invalid I/Opublic java.lang.String getName()