Class IoManager

All Implemented Interfaces:
Base, BaseManager

public class IoManager extends Manager implements BaseManager
An IOManager Object

An IOManager object used process input and output

  • Constructor Details

    • IoManager

      public IoManager()
      Constructor for IOmanager
  • Method Details

    • setManagers

      public void setManagers()
      Method to set the Managers
      Specified by:
      setManagers in interface Base
    • setMasterLists

      public void setMasterLists()
      Method to set Master List
      Specified by:
      setMasterLists in interface BaseManager
    • write

      public static void write(String fileName, List data) throws IOException
      Method to write data to file
      Parameters:
      fileName - The file name
      data - The data to be written
      Throws:
      IOException - If there's write error
    • read

      public static List read(String fileName) throws IOException
      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