com.sun.javatest.tool
public interface FileOpener
Modifier and Type | Interface and Description |
---|---|
static class |
FileOpener.Fault
This exception is to report problems that occur while opening a file.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileType()
Get an ID indicating the type of files this object can handle.
|
void |
open(java.io.File file)
Open the given file in an appropriate tool.
|
java.lang.String getFileType()
void open(java.io.File file) throws java.io.FileNotFoundException, FileOpener.Fault
file
- the file to be openedjava.io.FileNotFoundException
- is the file cannot be foundFileOpener.Fault
- if there is a problem opening the fileCopyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.