HTML and CSS Reference
In-Depth Information
Table B.34 lists methods associated with the FileWriter object. A FileWriter ob-
ject can perform multiple write actions, rather than just saving a single Blob .
Table B.34. FileWriter API
Attribute/method
Description
seek(offset)
Sets a specific file location at which the next write will occur.
truncate(size)
Alters the length of the file to the size passed in bytes.
write(data)
Writes the input data to a Blob object.
TableB.35 lists the methods associated with the FileSaver object which has methods to
write a Blob object to a file.
Table B.35. FileSaver API
Constructor/attribute/
method
Description
FileSaver(data)
Creates a FileSaver object with Blob data.
abort()
Terminates file saving.
Table B.36 lists the events associated with the FileSaver object which has events to
monitor the progress of writing a Blob to a file.
Table B.36. FileSaver events
Event name
Description
writestart
Fires when starting a writing event.
progress
Fires repeatedly while file is being written.
write
Fires when a file is being written to.
abort
Fires when file writing is canceled.
error
Fires in response to an error or an abort.
writeend
Fires when writing to a file has ended.
Table B.37 lists the methods associated with the FileEntry object. A FileEntry ob-
ject has methods to write and inspect the state of a file.
 
 
 
Search WWH ::




Custom Search