FROG

FROG Recognizer of Gestures

FileManagement Class Reference

Static FROGUI methods for saving and loading Session files. More...

List of all members.

Static Public Member Functions

static File load () throws IOException
 Displays a JFileChooser for selecting a Session file.
static File save () throws IOException
 Displays a JFileChooser for selecting a location to save to.

Detailed Description

Static FROGUI methods for saving and loading Session files.

Author:
Team Better Recognize

Member Function Documentation

static File load (  )  throws IOException [static]

Displays a JFileChooser for selecting a Session file.

Checks to make sure the user selects a .frog file and that if the file does not exist, does not try to open it.

Returns:
the location of an existing .frog file.
Exceptions:
IOException if the file does not exist
static File save (  )  throws IOException [static]

Displays a JFileChooser for selecting a location to save to.

If the user does not specify the .frog suffix, it is added automatically. Also checks to make sure that if the file already exists, the user is prompted to overwrite it or not.

Returns:
the location a Session can be saved to
Exceptions:
IOException if the Canonical Path of the location cannot be resolved

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables