1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtaone at http://mozilla.org/MPL/2.0/. */
5 dictionary IDBFileMetadataParameters
8 boolean lastModified = true;
11 interface IDBFileHandle : EventTarget
13 readonly attribute IDBMutableFile? mutableFile;
14 // this is deprecated due to renaming in the spec
15 readonly attribute IDBMutableFile? fileHandle; // now mutableFile
16 readonly attribute FileMode mode;
17 readonly attribute boolean active;
18 attribute unsigned long long? location;
21 IDBFileRequest? getMetadata(optional IDBFileMetadataParameters parameters);
23 IDBFileRequest? readAsArrayBuffer(unsigned long long size);
25 IDBFileRequest? readAsText(unsigned long long size,
26 optional DOMString? encoding = null);
29 IDBFileRequest? write(ArrayBuffer value);
31 IDBFileRequest? write(Blob value);
33 IDBFileRequest? write(DOMString value);
35 IDBFileRequest? append(ArrayBuffer value);
37 IDBFileRequest? append(Blob value);
39 IDBFileRequest? append(DOMString value);
41 IDBFileRequest? truncate(optional unsigned long long size);
43 IDBFileRequest? flush();
47 attribute EventHandler oncomplete;
48 attribute EventHandler onabort;
49 attribute EventHandler onerror;