de.jdemo.util
Class FileLauncher

java.lang.Object
  extended by de.jdemo.util.FileLauncher
All Implemented Interfaces:
IFileLauncher

public class FileLauncher
extends java.lang.Object
implements IFileLauncher

Author:
Markus Gebhard

Constructor Summary
FileLauncher()
           
 
Method Summary
 void launch(java.io.File file)
          Tries to open the given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLauncher

public FileLauncher()
Method Detail

launch

public void launch(java.io.File file)
            throws java.io.IOException
Tries to open the given file. Uses the java.awt.Desktop class, which might not support opening files on some operating systems.

Specified by:
launch in interface IFileLauncher
Throws:
java.io.IOException


JDemo homepage: http://www.jdemo.de
Copyright © 2003-2008 Markus Gebhard. All Rights Reserved.