HTML5 FileWriter
Supported Platform(s)
| - BlackBerry PlayBook 1.0+ |
| - BlackBerry 10 |
| - Ripple Emulator |
| API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
|---|---|---|---|---|---|---|---|
| abort | Y | Y | Y | ||||
| seek | Y | Y | |||||
| truncate | Y | Y | |||||
| write | Y | Y | |||||
| error | Y | Y | Y | Y | |||
| fileName | Y | Y | Y | Y | |||
| length | Y | Y | Y | Y | |||
| onabort | Y | Y | Y | Y | |||
| onerror | Y | Y | Y | Y | |||
| onprogress | Y | Y | Y | Y | |||
| onwrite | Y | Y | Y | Y | |||
| onwriteend | Y | Y | Y | Y | |||
| onwritestart | Y | Y | Y | Y | |||
| position | Y | Y | Y | Y | |||
| readyState | Y | Y | Y | Y |
Configuration Document Settings
|
To use all of the API described for this object, you must ensure the following settings are in your configuration document: |
| This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
| Permission Elements (PlayBook and BlackBerry 10+) |
|---|
| This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Properties
| FileError | error |
| String | fileName |
| Long | length |
| function | onabort |
| function | onerror |
| function | onprogress |
| function | onwrite |
| function | onwriteend |
| function | onwritestart |
| Long | position |
| String | readyState |
Functions
void
seek
(pointer : byte)
Moves the file pointer to the byte specified.
| Supported Platforms | |
|---|---|
| - BlackBerry 10 | |
| - Ripple Emulator | |
| Parameters | |
|---|---|
| pointer | moves the pointer to the byte location specified |
Properties
FileError
error
object containing error
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
String
fileName
The name of the file to be written to
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
Long
length
lengh of the file to be written
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
function
onabort
function called when the file writing has been aborted
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
function
onerror
function called when there is an error during the file writing
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
function
onprogress
function called when writing is in progress
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
function
onwrite
function called when the request has completed successfully
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
function
onwriteend
function called when file writing has been completed
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
function
onwritestart
function called when the file writing starts
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:38 GMT-0500 (EST)