@Generated(value="org.realityforge.webtack") @JsType(isNative=true, namespace="<global>", name="Blob") public class Blob extends java.lang.Object implements MediaProvider
Constructor and Description |
---|
Blob()
The Blob() constructor returns a new Blob object.
|
Blob(BlobPart[] blobParts)
The Blob() constructor returns a new Blob object.
|
Blob(BlobPart[] blobParts,
BlobPropertyBag options)
The Blob() constructor returns a new Blob object.
|
Blob(JsArray<BlobPart> blobParts)
The Blob() constructor returns a new Blob object.
|
Blob(JsArray<BlobPart> blobParts,
BlobPropertyBag options)
The Blob() constructor returns a new Blob object.
|
Modifier and Type | Method and Description |
---|---|
Promise<ArrayBuffer> |
arrayBuffer()
The arrayBuffer() method in the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
|
int |
size()
The Blob interface's size property returns the size of the Blob or File in bytes.
|
Blob |
slice()
The Blob interface's slice() method creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
|
Blob |
slice(int start)
The Blob interface's slice() method creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
|
Blob |
slice(int start,
int end)
The Blob interface's slice() method creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
|
Blob |
slice(int start,
int end,
java.lang.String contentType)
The Blob interface's slice() method creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
|
ReadableStream |
stream()
The Blob interface's stream() method returns a ReadableStream which upon reading returns the data contained within the Blob.
|
Promise<java.lang.String> |
text()
The text() method in the Blob interface returns a Promise that resolves with a string containing the contents of the blob, interpreted as UTF-8.
|
java.lang.String |
type()
The type property of a Blob object returns the MIME type of the file.
|
public Blob(@Nonnull JsArray<BlobPart> blobParts, @Nonnull BlobPropertyBag options)
public Blob(@Nonnull BlobPart[] blobParts, @Nonnull BlobPropertyBag options)
public Blob(@Nonnull JsArray<BlobPart> blobParts)
public Blob(@Nonnull BlobPart[] blobParts)
public Blob()
@JsProperty(name="size") public int size()
@JsProperty(name="type") @Nonnull public java.lang.String type()
@Nonnull public Promise<ArrayBuffer> arrayBuffer()
@Nonnull public Blob slice(int start, int end, @Nonnull java.lang.String contentType)
@Nonnull public Blob slice(int start, int end)
@Nonnull public Blob slice(int start)
@Nonnull public Blob slice()
@Nonnull public ReadableStream stream()
@Nonnull public Promise<java.lang.String> text()