Class XFileSaveService
java.lang.Object
net.sourceforge.jnlp.services.XFileSaveService
- All Implemented Interfaces:
FileSaveService
The FileSaveService JNLP service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsaveAsFileDialog(String pathHint, String[] extensions, FileContents contents) Prompts the user to save a file, with an optional pre-set filename.saveFileDialog(String pathHint, String[] extensions, InputStream stream, String name) Prompts the user to save a file.private voidwriteToFile(InputStream stream, File file) Writes actual file to disk.
-
Constructor Details
-
XFileSaveService
protected XFileSaveService()
-
-
Method Details
-
saveFileDialog
public FileContents saveFileDialog(String pathHint, String[] extensions, InputStream stream, String name) throws IOException Prompts the user to save a file.- Specified by:
saveFileDialogin interfaceFileSaveService- Throws:
IOException
-
saveAsFileDialog
public FileContents saveAsFileDialog(String pathHint, String[] extensions, FileContents contents) throws IOException Prompts the user to save a file, with an optional pre-set filename.- Specified by:
saveAsFileDialogin interfaceFileSaveService- Throws:
IOException
-
writeToFile
Writes actual file to disk.- Throws:
IOException
-