Class XMLGameDataIO

  • All Implemented Interfaces:
    GameDataIO

    public class XMLGameDataIO
    extends java.lang.Object
    implements GameDataIO
    An unfinished class for reading GameData from XML files.
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLGameDataIO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GameData read​(java.io.Reader in, GameData world)
      Unfinished class!
      GameData read​(FileType aFileType, Rules rules)
      Reads a new GameData object from aFileType.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLGameDataIO

        public XMLGameDataIO()
    • Method Detail

      • read

        public GameData read​(FileType aFileType,
                             Rules rules)
                      throws java.io.IOException
        Description copied from interface: GameDataIO
        Reads a new GameData object from aFileType.
        Specified by:
        read in interface GameDataIO
        Parameters:
        aFileType - Provides the input file (reader).
        rules - This game is expected to be found.
        Returns:
        a new GameData object, representing the input.
        Throws:
        java.io.IOException - If an I/O error occurs