Class AIInOut.AIFileInOut

  • All Implemented Interfaces:
    AIInOut
    Enclosing interface:
    AIInOut

    public static class AIInOut.AIFileInOut
    extends Object
    implements AIInOut
    AIFileInOut is an implementation of AIInOut that reads from a file.
    • Constructor Detail

      • AIFileInOut

        public AIFileInOut​(File file)
        Constructs an AIFileInOut instance.
        Parameters:
        file - the file to read from
    • Method Detail

      • write

        public void write​(String content)
        Writes a string to the file.
        Specified by:
        write in interface AIInOut
        Parameters:
        content - the string to write
      • getFile

        public File getFile()
        Description copied from interface: AIInOut
        The underlying file.
        Specified by:
        getFile in interface AIInOut