Terrier IR Platform
2.2.1

uk.ac.gla.terrier.applications.desktop.filehandling
Class AssociationFileOpener

java.lang.Object
  extended by uk.ac.gla.terrier.applications.desktop.filehandling.AssociationFileOpener
All Implemented Interfaces:
FileOpener

public class AssociationFileOpener
extends java.lang.Object
implements FileOpener

This class implements the interface FileOpener, using a properties file for storing the file associations.

Version:
$Revision: 1.13 $
Author:
Vassilis Plachouras

Constructor Summary
AssociationFileOpener()
           
 
Method Summary
 void load()
          Loaads the file assocciations to use from a properties file.
 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()
          Saves the used file assocciations to a properties file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationFileOpener

public AssociationFileOpener()
Method Detail

open

public void open(java.lang.String filename)
Opens the file with the given name, using either a pre-defined, or a user-defined application. It assumes that

Specified by:
open in interface FileOpener
Parameters:
filename - the name of the file to open.

save

public void save()
Saves the used file assocciations to a properties file.

Specified by:
save in interface FileOpener

load

public void load()
Loaads the file assocciations to use from a properties file.

Specified by:
load in interface FileOpener

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow