|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.applications.desktop.filehandling.MultiOSFileOpener
public class MultiOSFileOpener
A file opener implementation that uses a Java 6 AWT API to open the prescribed file.
| Constructor Summary | |
|---|---|
MultiOSFileOpener()
|
|
| Method Summary | |
|---|---|
void |
load()
Perform any loading in of data the implementor may require. |
static void |
open(java.io.File file)
Opens the given File in the system default viewer application. |
void |
open(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiOSFileOpener()
| Method Detail |
|---|
public void load()
load in interface FileOpener
public static void open(java.io.File file)
throws java.io.IOException
file - the File to open
java.io.IOException - if an application couldn't be found or if the File failed to launch
public void open(java.lang.String filename)
throws java.lang.Exception
open in interface FileOpenerfilename - the name of the file to open.
java.lang.Exceptionpublic void save()
save in interface FileOpener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||