Package javax.jnlp
Interface ExtendedService
- All Known Implementing Classes:
XExtendedService
public interface ExtendedService
This interface provides a way for the JNLP application to open specific files
in the client's system. It asks permission from the user before opening any
files.
-
Method Summary
Modifier and TypeMethodDescriptionOpen a file on the client' system and return its contents.Opens multiple files on the user's sytem and returns their contents as aFileContents
array
-
Method Details
-
openFile
Open a file on the client' system and return its contents. The user must grant permission to the application for this to work.- Parameters:
file
- the file to open- Returns:
- the opened file as a
FileContents
object - Throws:
IOException
- on any io problems
-
openFiles
Opens multiple files on the user's sytem and returns their contents as aFileContents
array- Parameters:
files
- the files to open- Returns:
- an array of FileContents objects
- Throws:
IOException
- on any io problems
-