Class JsFileSaver
- java.lang.Object
-
- org.uberfire.ext.editor.commons.client.file.exports.jso.JsFileSaver
-
@JsType(isNative=true, namespace="<global>") public class JsFileSaver extends ObjectProvides the JsInterop API for FileSaver js. Provided by the webjarorg.webjars.bower.filesaver.- See Also:
- FileSaver.js
-
-
Constructor Summary
Constructors Constructor Description JsFileSaver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsaveAs(org.jboss.errai.common.client.dom.Blob blob, String fileName, boolean disableAutoBOM)Saves the given blob's content into a file.
-
-
-
Method Detail
-
saveAs
@JsMethod public static void saveAs(org.jboss.errai.common.client.dom.Blob blob, String fileName, boolean disableAutoBOM)Saves the given blob's content into a file.- Parameters:
blob- The blob data.fileName- The file name.disableAutoBOM- true if you don't want FileSaver.js to automatically provide Unicode text encoding hints.
-
-