Package net.sourceforge.jnlp.services
Class XExtendedService
- java.lang.Object
-
- net.sourceforge.jnlp.services.XExtendedService
-
- All Implemented Interfaces:
ExtendedService
public class XExtendedService extends java.lang.Object implements ExtendedService
Implementation of ExtendedService
-
-
Constructor Summary
Constructors Constructor Description XExtendedService()
-
Method Summary
All Methods Instance Methods Concrete 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
public FileContents openFile(java.io.File file) throws java.io.IOException
Description copied from interface:ExtendedServiceOpen a file on the client' system and return its contents. The user must grant permission to the application for this to work.- Specified by:
openFilein interfaceExtendedService- Parameters:
file- the file to open- Returns:
- the opened file as a
FileContentsobject - Throws:
java.io.IOException- on any io problems
-
openFiles
public FileContents[] openFiles(java.io.File[] files) throws java.io.IOException
Description copied from interface:ExtendedServiceOpens multiple files on the user's sytem and returns their contents as aFileContentsarray- Specified by:
openFilesin interfaceExtendedService- Parameters:
files- the files to open- Returns:
- an array of FileContents objects
- Throws:
java.io.IOException- on any io problems
-
-