public class MultiOSFileOpener extends Object implements FileOpener
Constructor and Description |
---|
MultiOSFileOpener() |
Modifier and Type | Method and Description |
---|---|
void |
load()
Perform any loading in of data the implementor may require.
|
static void |
open(File file)
Opens the given File in the system default viewer application.
|
void |
open(String filename)
Opens the file with the given name, using either a
pre-defined, or a user-defined application.
|
void |
save()
Perform any saving to disk of data the implementor may requires.
|
public void load()
load
in interface FileOpener
public static void open(File file) throws IOException
file
- the File to openIOException
- if an application couldn't be found or if the File failed to launchpublic void open(String filename) throws Exception
open
in interface FileOpener
filename
- the name of the file to open.Exception
public void save()
save
in interface FileOpener
Terrier 4.0. Copyright © 2004-2014 University of Glasgow