KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jnlp > ExtendedService


1 /*
2  * @(#)ExtendedService.java 1.7 04/03/12
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.jnlp;
9
10 import java.io.IOException;
11 import java.awt.print.Printable;
12 import java.awt.print.PageFormat;
13
14 /**
15  * <code>ExtendedService</code> provides additional support to the current
16  * JNLP API, which allow applications to open a specific file in the client's file system.
17  *
18  *
19  * @since 1.5
20  */

21
22
23 public interface ExtendedService {
24  /**
25    * Asks the user the permission to open the specified file if the file
26    * has not been opened before.
27    *
28    * The contents of the file is returned as a FileContents object.
29    * The returned FileContents object contains the contents
30    * the file.
31    *
32    * @param file the file object
33    *
34    * @return A FileContent object with information about the
35    * opened file
36    *
37    * @exception IOException - if there is any I/O error
38    */

39
40     public FileContents openFile(java.io.File file) throws IOException;
41
42  /**
43    * Asks the user the permission to open the specified list of files if
44    * any of the files has not been opened before.
45    *
46    * The contents of each file is returned as a FileContents object in the FileContents array.
47    * The returned FileContents object contains the contents
48    * the file.
49    *
50    * @param files the array of files
51    *
52    * @return A FileContent[] object with information about each
53    * opened file
54    *
55    * @exception IOException - if there is any I/O error
56    */

57     public FileContents[] openFiles(java.io.File[] files) throws IOException;
58
59 }
60
Popular Tags