Terrier IR Platform
2.2.1

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

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

public class MacOSXFileOpener
extends java.lang.Object
implements FileOpener

This class implements the interface FileOpener, using /usr/bin/open to open documents that LaunchServices has associations for.

Version:
$Revision: 1.11 $
Author:
Craig Macdonald, Vassilis Plachouras

Field Summary
static java.lang.String application
          Set to /usr/bin/open which is a useful MacOS X application for opening document using their associated application.
 
Constructor Summary
MacOSXFileOpener()
           
 
Method Summary
 void load()
          Does nothing, not used
 void open(java.lang.String filename)
          Opens the file with the given name, using either a pre-defined application.
 void save()
          Does nothing, not used
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

application

public static final java.lang.String application
Set to /usr/bin/open which is a useful MacOS X application for opening document using their associated application.

See Also:
Constant Field Values
Constructor Detail

MacOSXFileOpener

public MacOSXFileOpener()
Method Detail

open

public void open(java.lang.String filename)
Opens the file with the given name, using either a pre-defined application. It assumes that an non-zero exit code means that LaunchServices didn't have an application for it.

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

load

public void load()
Does nothing, not used

Specified by:
load in interface FileOpener

save

public void save()
Does nothing, not used

Specified by:
save in interface FileOpener

Terrier IR Platform
2.2.1

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