Class CRGameNameIO

  • All Implemented Interfaces:
    GameNameIO

    public class CRGameNameIO
    extends java.lang.Object
    implements GameNameIO
    The purpose of this class is to try to read the game name from a cr report file.
    Version:
    $Revision: 305 $
    Author:
    $Author: $
    • Constructor Summary

      Constructors 
      Constructor Description
      CRGameNameIO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getGameName​(FileType filetype)
      Tries to determine the game name from a report.
      • Methods inherited from class java.lang.Object

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

      • CRGameNameIO

        public CRGameNameIO()
    • Method Detail

      • getGameName

        public java.lang.String getGameName​(FileType filetype)
                                     throws java.io.IOException
        Tries to determine the game name from a report. It tries to get it from the "Spiel" tag and returns "Eressea" if no such tag is found.
        Specified by:
        getGameName in interface GameNameIO
        Parameters:
        filetype -
        Returns:
        A String representing the name of the game, null if the file does not contain tags
        Throws:
        java.io.IOException - If an I/O error occurs