Package javax.jnlp
Interface ExtendedService
-
- All Known Implementing Classes:
XExtendedService
public interface ExtendedServiceThis 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileContentsopenFile(java.io.File file)Open a file on the client' system and return its contents.FileContents[]openFiles(java.io.File[] files)Opens multiple files on the user's sytem and returns their contents as aFileContentsarray
-
-
-
Method Detail
-
openFile
FileContents openFile(java.io.File file) throws java.io.IOException
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
FileContentsobject - Throws:
java.io.IOException- on any io problems
-
openFiles
FileContents[] openFiles(java.io.File[] files) throws java.io.IOException
Opens multiple files on the user's sytem and returns their contents as aFileContentsarray- Parameters:
files- the files to open- Returns:
- an array of FileContents objects
- Throws:
java.io.IOException- on any io problems
-
-