Interface SaveContent
public interface SaveContent
Writes the content of a file once the user has chosen where to save it.
Called off the EDT, so a large document can be serialized without freezing
the UI. The stream is closed by the caller. SaveFileRequest#onFilterChanged
and FileDialogResult#getOptionValue(String) tell it which format and
options the user picked.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(FileDialogResult result, OutputStream out) Writes the file.
-
Method Details
-
write
Writes the file.
Parameters
result: what the user chose (location, filter, options)out: the destination
Throws
IOException: if writing fails; the save is reported as failed
- Throws:
IOException
-