Class FileRequestManager

java.lang.Object
rosequartz.input.FileRequestManager

public class FileRequestManager extends Object
Allows the application to request reading and writing files in graphical user interface.
  • Method Details

    • get

      public static FileRequestManager get()
      Gets the file request manager.
      Returns:
      FileRequestManager-object
      See Also:
      FileRequestManager
    • read

      public boolean read(String dest)
      Requests to select a file to read in a graphical user interface. When successful, the file is copied to the given location in the engine file system. Browsers might block a read file popup if your application has not yet received any interaction from the user, in which case the method will (as expected) return false.
      Parameters:
      dest - destination location of selected file in engine file system
      Returns:
      if action was successful
    • write

      public boolean write(String src)
      Requests to select a file to write in a graphical user interface. When successful, the file os copied from the given location in the engine file system.
      Parameters:
      src - source location of written file in engine file system
      Returns:
      if action was successful