Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
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.
Methods
public abstract void write(FileDialogResult result, OutputStream out)
throws IOException | Writes the file. |
Method details
write
public abstract void write(FileDialogResult result, OutputStream out)
throws IOExceptionWrites the file.
Parameters
resultFileDialogResult- what the user chose (location, filter, options)
outOutputStream- the destination
Throws
IOException- if writing fails; the save is reported as failed