org.freehep.jas.services
Interface FileHandler

All Known Implementing Classes:
SimpleWebBrowser

public interface FileHandler

An interface to be implemented by services which can open files.

Version:
$Id: FileHandler.java 13876 2011-09-20 00:52:21Z tonyj $
Author:
tonyj

Method Summary
 boolean accept(File file)
          Returns true if this file handler is able to open the file
 FileFilter getFileFilter()
          Returns a file filter suitable for using in a FileOpen dialog.
 void openFile(File file)
          Opens a given file.
 

Method Detail

accept

boolean accept(File file)
               throws IOException
Returns true if this file handler is able to open the file

Parameters:
file - The file to test
Returns:
true if file can be opened.
Throws:
IOException

getFileFilter

FileFilter getFileFilter()
Returns a file filter suitable for using in a FileOpen dialog.


openFile

void openFile(File file)
              throws IOException
Opens a given file.

Parameters:
file - The file to open
Throws:
IOException


Copyright © 2013. All Rights Reserved.