Class JsFileSaver


  • @JsType(isNative=true,
            namespace="<global>")
    public class JsFileSaver
    extends Object
    Provides the JsInterop API for FileSaver js. Provided by the webjar org.webjars.bower.filesaver.
    See Also:
    FileSaver.js
    • Constructor Detail

      • JsFileSaver

        public JsFileSaver()
    • 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.