public class Blob
extends com.google.gwt.core.client.JavaScriptObject
File interface is based on it, inheriting the
Blob's functionality and expanding it to support files on the user's system.| Modifier | Constructor and Description |
|---|---|
protected |
Blob() |
| Modifier and Type | Method and Description |
|---|---|
String |
createObjectURL()
Deprecated.
|
long |
getSize()
The size, in bytes, of the data contained in the Blob object.
|
String |
getType()
An ASCII-encoded string, in all lower case, indicating the MIME type of
the data contained in the Blob.
|
void |
revokeObjectURL(String url)
Deprecated.
Replaced by
FileUtils.revokeObjectURL(java.lang.String) |
Blob |
slice()
Returns a new Blob object containing a full copy of the data in the
source Blob.
|
Blob |
slice(long start)
Returns a new Blob object containing the data in the specified range of
bytes of the source Blob.
|
Blob |
slice(long start,
long end)
Returns a new Blob object containing the data in the specified range of
bytes of the source Blob.
|
Blob |
slice(long start,
long end,
String contentType)
Returns a new Blob object containing the data in the specified range of
bytes of the source Blob.
|
public final long getSize()
public final String getType()
public final Blob slice()
public final Blob slice(long start)
start - An index into the Blob indicating the first byte to copy into
the new Blob. If you specify a negative value, it's treated as
an offset from the end of the string toward the beginning (for
example, -10 would be the 10th from last byte in the Blob).public final Blob slice(long start, long end)
start - An index into the Blob indicating the first byte to copy into
the new Blob. If you specify a negative value, it's treated as
an offset from the end of the string toward the beginning (for
example, -10 would be the 10th from last byte in the Blob).end - An index into the Blob indicating the last byte to copy into
the new Blob. If you specify a negative value, it's treated as
an offset from the end of the string toward the beginning (for
example, -10 would be the 10th from last byte in the Blob).public final Blob slice(long start, long end, String contentType)
start - An index into the Blob indicating the first byte to copy into
the new Blob. If you specify a negative value, it's treated as
an offset from the end of the string toward the beginning (for
example, -10 would be the 10th from last byte in the Blob).end - An index into the Blob indicating the last byte to copy into
the new Blob. If you specify a negative value, it's treated as
an offset from the end of the string toward the beginning (for
example, -10 would be the 10th from last byte in the Blob).contentType - The content type to assign to the new Blob; this will be the
value of its type property.@Deprecated public final String createObjectURL()
FileUtils.createObjectURL(org.vectomatic.file.Blob)@Deprecated public final void revokeObjectURL(String url)
FileUtils.revokeObjectURL(java.lang.String)Copyright © 2017. All Rights Reserved.