filereader.js
No description.

File Location

/goog/fs/filereader.js

Classes

goog.fs.FileReader
An object for monitoring the reading of files. This emits ProgressEvents of the types listed in goog.fs.FileReader.EventType.

Public Protected Private

Enumerations

Global Functions

goog.fs.FileReader.createDeferred_(reader) !goog.async.Deferred
Creates a new deferred object for the results of a read method.
Arguments:
reader : goog.fs.FileReader
The reader to create a deferred for.
Returns: !goog.async.Deferred  The deferred results.
code »
goog.fs.FileReader.readAsArrayBuffer(blob) !goog.async.Deferred
Reads a blob as an array buffer.
Arguments:
blob : !Blob
The blob to read.
Returns: !goog.async.Deferred  The deferred Blob contents as an array buffer. If an error occurs, the errback is called with a goog.fs.Error.
code »
goog.fs.FileReader.readAsBinaryString(blob) !goog.async.Deferred
Reads a blob as a binary string.
Arguments:
blob : !Blob
The blob to read.
Returns: !goog.async.Deferred  The deferred Blob contents as a binary string. If an error occurs, the errback is called with a goog.fs.Error.
code »
goog.fs.FileReader.readAsDataUrl(blob) !goog.async.Deferred
Reads a blob as a data URL.
Arguments:
blob : !Blob
The blob to read.
Returns: !goog.async.Deferred  The deferred Blob contents as a data URL. If an error occurs, the errback is called with a goog.fs.Error.
code »
goog.fs.FileReader.readAsText(blobopt_encoding) !goog.async.Deferred
Reads a blob as text.
Arguments:
blob : !Blob
The blob to read.
opt_encoding : string=
The name of the encoding to use.
Returns: !goog.async.Deferred  The deferred Blob contents as text. If an error occurs, the errback is called with a goog.fs.Error.
code »

Directory fs

File Reference