Interface FileOpener
public interface FileOpener
An interface for a handler, provided by a tool manager,
that can open files of a particular type.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThis exception is to report problems that occur while opening a file. -
Method Summary
Modifier and TypeMethodDescriptionGet an ID indicating the type of files this object can handle.voidOpen the given file in an appropriate tool.
-
Method Details
-
getFileType
String getFileType()Get an ID indicating the type of files this object can handle.- Returns:
- an ID indicating the type of files this object can handle.
-
open
Open the given file in an appropriate tool.- Parameters:
file- the file to be opened- Throws:
FileNotFoundException- is the file cannot be foundFileOpener.Fault- if there is a problem opening the file
-