|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LaunchService
The LaunchService
interface provides opening, editing or printing the given file
by launching the associated application.
Method Summary | |
---|---|
void |
edit(java.io.File file)
Launches the associated editor to edit the given file. |
boolean |
isEditable(java.io.File file)
Checks if the given file is editable. |
boolean |
isPrintable(java.io.File file)
Checks if the given file is printable. |
void |
open(java.io.File file)
Opens the given file by launching the associated application. |
void |
print(java.io.File file)
Prints the given file. |
java.io.File |
resolveLinkFile(java.io.File file)
Resolves the link file if the given file is a link file or symbol file. |
Method Detail |
---|
void open(java.io.File file) throws LaunchFailedException
file
- the given file.
LaunchFailedException
- if the given file has no associated application,
or the associated application fails to be launched.boolean isEditable(java.io.File file)
file
- the given file.
true
if the given file has no associated editor;
false
otherwise.void edit(java.io.File file) throws LaunchFailedException
file
- the given file.
LaunchFailedException
- if the given file has no associated editor,
or the associated editor fails to be launched.boolean isPrintable(java.io.File file)
file
- the given file.
true
if the given file is printable; false
otherwise.void print(java.io.File file) throws LaunchFailedException
file
- the given file.
LaunchFailedException
- if the given file is not printable, or fails to be printed.java.io.File resolveLinkFile(java.io.File file)
This method will get the target/referenced file path if the given file is a link/shortcut file; or get the absolute path if the given file is in a relative path.
file
- the given file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |