HTML and CSS Reference
In-Depth Information
Table B.39. DirectoryReader API
Attribute/method
Description
Allows you to read the next block of entries from the current directory, with a successful
read being handled by the success callback and errors being handled by the error callback.
readEntries(success, error)
B.3.2. Blob data APIs
A Blob is an object of immutable data. Blob s are usually used to store the contents of a
file. Part of the File API is inherited from the Blob API. Table B.40 lists the methods and
attributes of a Blob .
Table B.40. Blob interface
Constructor/attribute/
method
Description
Creates a Blob object without BlobBuilder. The array can be any number of ArrayBuffer,
ArrayBufferView (typed array), Blob, or DOMString objects, in any order. attributes is an
object that can specify the media type and line endings in the type and ending properties,
respectively.
blob([array], [attributes])
size
Size in bytes of Blob's data; read only.
type
MIME type of the Blob's data.
Returns a specific chunk of Blob data, from offset start to offset end with MIME type
type.
slice([start],[end],[type]
Table B.41 lists the methods for the BlobBuilder object. The BlobBuilder provides
a way to construct Blob objects by calling one or more append methods on the
BlobBuilder object. This API has been deprecated.
Table B.41. BlobBuilder API
Attribute/method
Description
append(ArrayBuffer)
Appends the ArrayBuffer to the Blob.
append(Blob)
Appends the Blob parameter to the Blob.
Appends the string data to the Blob. The endings parameter specifies how strings contain-
ing \n are to be written out. This can be 'transparent' (endings unchanged) or 'native' (end-
ings changed to match host system convention).
append(data, [endings])
Returns the Blob object that's the result of all the append operations. If specified, the con-
tent type will be set on the returned Blob. This operation will also empty the BlobBuilder
of all data.
getBlob([contentType])
 
 
 
Search WWH ::




Custom Search