Class JsFileContents

java.lang.Object
io.deephaven.web.client.api.storage.JsFileContents

@JsType(namespace="dh.storage", name="FileContents") public class JsFileContents extends Object
Represents a file's contents loaded from the server. If an etag was specified when loading, client should first test if the etag of this instance matches - if so, the contents will be empty, and the client's existing contents should be used.
  • Constructor Details

    • JsFileContents

      @JsIgnore public JsFileContents(elemental2.dom.Blob data, String etag)
    • JsFileContents

      @JsIgnore public JsFileContents(String etag)
  • Method Details

    • blob

      public static JsFileContents blob(elemental2.dom.Blob blob)
    • text

      public static JsFileContents text(String... text)
    • arrayBuffers

      public static JsFileContents arrayBuffers(elemental2.core.ArrayBuffer... buffers)
    • text

      @JsMethod public elemental2.promise.Promise<String> text()
    • arrayBuffer

      @JsMethod public elemental2.promise.Promise<elemental2.core.ArrayBuffer> arrayBuffer()
    • getEtag

      @JsProperty public String getEtag()