2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-09-21 06:47:47 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://dev.w3.org/2006/webapi/FileAPI/
|
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2014-08-05 06:20:34 +04:00
|
|
|
[Constructor,
|
2018-05-04 16:28:13 +03:00
|
|
|
Exposed=(DedicatedWorker,SharedWorker)]
|
2012-09-21 06:47:47 +04:00
|
|
|
interface FileReaderSync {
|
|
|
|
|
|
|
|
// Synchronously return strings
|
|
|
|
|
|
|
|
[Throws]
|
|
|
|
ArrayBuffer readAsArrayBuffer(Blob blob);
|
|
|
|
[Throws]
|
|
|
|
DOMString readAsBinaryString(Blob blob);
|
|
|
|
[Throws]
|
|
|
|
DOMString readAsText(Blob blob, optional DOMString encoding);
|
|
|
|
[Throws]
|
|
|
|
DOMString readAsDataURL(Blob blob);
|
|
|
|
};
|