net.sf.sail.core.util
Class FileUtils
java.lang.Object
net.sf.sail.core.util.FileUtils
public class FileUtils
- extends java.lang.Object
Handy file utilities for SAIL.
- Author:
- turadg
Method Summary |
static boolean |
desktopBrowse(java.net.URI uri)
Open the file using the system's native file handler. |
static boolean |
desktopOpen(java.io.File file)
Open the file using the system's native file handler. |
static javax.swing.filechooser.FileFilter |
getCurnitFileFilter()
|
static javax.swing.filechooser.FileFilter |
getJarFileFilter()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
getJarFileFilter
public static javax.swing.filechooser.FileFilter getJarFileFilter()
getCurnitFileFilter
public static javax.swing.filechooser.FileFilter getCurnitFileFilter()
desktopOpen
public static boolean desktopOpen(java.io.File file)
- Open the file using the system's native file handler.
Supported only in Java 6, but since SAIL targets Java 5 the feature has
to be tested for by reflection.
- Parameters:
file
-
- Returns:
- true iff the handoff to the native system was successful
- See Also:
java.awt.Desktop
desktopBrowse
public static boolean desktopBrowse(java.net.URI uri)
- Open the file using the system's native file handler.
Supported only in Java 6, but since SAIL targets Java 5 the feature has
to be tested for by reflection.
- Parameters:
uri
-
- Returns:
- true iff the handoff to the native system was successful
- See Also:
java.awt.Desktop
Copyright © 2004-2008 TELS Center. All Rights Reserved.