public interface ExtendedService
ExtendedService
provides additional support to the current
JNLP API, to allow applications to open a specific file or files
in the client's file system.Modifier and Type | Method and Description |
---|---|
FileContents |
openFile(java.io.File file)
Allows the application to open the specified file, even if the
application is running in the untrusted execution environment.
|
FileContents[] |
openFiles(java.io.File[] files)
Allows the application to open the specified files, even if the
application is running in the untrusted execution environment.
|
FileContents openFile(java.io.File file) throws java.io.IOException
FileContents
object.file
- the file objectFileContents
object with information about the
opened filejava.io.IOException
- - if there is any I/O errorFileContents[] openFiles(java.io.File[] files) throws java.io.IOException
file
is returned as a
FileContents
object in the FileContents
array.files
- the array of filesFileContents[]
object with information about each
opened filejava.io.IOException
- - if there is any I/O errorCopyright © 1998, 2016, Oracle and/or its affiliates. All rights reserved.