Class IoManager
java.lang.Object
Manager
IoManager
- All Implemented Interfaces:
Base,BaseManager
An IOManager Object
An IOManager object used
process input and output
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Listmethod to Read the contents of the given filevoidMethod to set the ManagersvoidMethod to set Master Liststatic voidMethod to write data to fileMethods inherited from class Manager
getCentralManager, setCentralManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Base
getCentralManager, setCentralManager
-
Constructor Details
-
IoManager
public IoManager()Constructor for IOmanager
-
-
Method Details
-
setManagers
public void setManagers()Method to set the Managers- Specified by:
setManagersin interfaceBase
-
setMasterLists
public void setMasterLists()Method to set Master List- Specified by:
setMasterListsin interfaceBaseManager
-
write
Method to write data to file- Parameters:
fileName- The file namedata- The data to be written- Throws:
IOException- If there's write error
-
read
method to Read the contents of the given file- Parameters:
fileName- the file name- Returns:
- the list of data that has been read
- Throws:
IOException- If there's read error
-