Module java.jnlp
Package javax.jnlp

Interface ExtendedService



  • 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.
    Since:
    1.5
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      FileContents openFile​(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 a FileContents object.
        Parameters:
        file - the file object
        Returns:
        A FileContents object 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 each file is returned as a FileContents object in the FileContents array.
        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