-
public interface ExtendedServiceExtendedServiceprovides additional support to the current JNLP API, to allow applications to open a specific file or files in the client's file system.- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileContentsopenFile(File file)Allows the application to open the specified file, even if the application is running in the untrusted execution environment.FileContents[]openFiles(File[] files)Allows the application to open the specified files, even if the application is running in the untrusted execution environment.
-
-
-
Method Detail
-
openFile
FileContents openFile(File file) throws IOException
Allows the application to open the specified file, even if the application is running in the untrusted execution environment. If the application would not otherwise have permission to access the file, the JNLP CLient should warn user of the potential security risk. The contents of the file is returned as aFileContentsobject.- Parameters:
file- the file object- Returns:
- A
FileContentsobject with information about the opened file - Throws:
IOException- - if there is any I/O error
-
openFiles
FileContents[] openFiles(File[] files) throws IOException
Allows the application to open the specified files, even if the application is running in the untrusted execution environment. If the application would not otherwise have permission to access the files, the JNLP CLient should warn user of the potential security risk. The contents of eachfileis returned as aFileContentsobject in theFileContentsarray.- Parameters:
files- the array of files- Returns:
- A
FileContents[]object with information about each opened file - Throws:
IOException- - if there is any I/O error
-
-