org.terrier.applications.desktop.filehandling
Interface FileOpener

All Known Implementing Classes:
AssociationFileOpener, MacOSXFileOpener, MultiOSFileOpener, WindowsFileOpener

public interface FileOpener

This interface is used for encapsulatign the platform-dependent process of opening a file with an arbitrary extension.

Author:
Vassilis Plachouras

Method Summary
 void load()
          Perform any loading in of data the implementor may require.
 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.
 

Method Detail

open

void open(java.lang.String filename)
          throws java.lang.Exception
Opens the file with the given name, using either a pre-defined, or a user-defined application. This interface should be implemented by classes that should work for Linux or Windows.

Parameters:
filename - the name of the file to open.
Throws:
java.lang.Exception

save

void save()
Perform any saving to disk of data the implementor may requires.


load

void load()
Perform any loading in of data the implementor may require.



Terrier 3.5. Copyright © 2004-2011 University of Glasgow