goog.net.FileDownloader.Download_
Classgoog.net.FileDownloader.Download_
> goog.Disposable
.addOnDisposeCallback(callback, opt_scope)
Inherited from goog.Disposable
.
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.
callback
{!Function
}
opt_scope
{Object
=}
.blob
{Blob
}The downloaded blob. Only set once the XHR has completed, if it completed successfully.
.cancelled
{boolean
}Whether this download has been cancelled by the user.
.creationStack
{string
}Inherited from goog.Disposable
.
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
.deferred
{!goog.async.Deferred
}The Deferred that will be fired when the download is complete.
.dispose()
Inherited from goog.Disposable
.
Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.
void
}
.disposeInternal()
[protected]Deletes or nulls out any references to COM objects, DOM nodes, or other disposable objects. Classes that extend {@code goog.Disposable} should override this method. Not reentrant. To avoid calling it twice, it must only be called from the subclass' {@code disposeInternal} method. Everywhere else the public {@code dispose} method must be used. For example:
mypackage.MyClass = function() { goog.base(this); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { goog.base(this, 'disposeInternal'); // Dispose logic specific to MyClass. ... };
.file
{goog.fs.FileEntry
}The file entry where the blob is to be stored. Only set once it's been loaded from the filesystem.
.getDisposed
[deprecated]Deprecated. Use {@link #isDisposed} instead.
Inherited from goog.Disposable
.
boolean
}
.isDisposed()
Inherited from goog.Disposable
.
boolean
}
.name
{?string
}The name of the blob being downloaded. Only sey once the XHR has completed, if it completed successfully.
.registerDisposable(disposable)
Inherited from goog.Disposable
.
Associates a disposable object with this object so that they will be disposed together.
disposable
{goog.disposable.IDisposable
}
.url
{string
}The URL for the file being downloaded.
.writer
{goog.fs.FileWriter
}The file writer for writing the blob to the filesystem. Only set once it's been loaded from the filesystem.
.xhr
{goog.net.XhrIo
}The XhrIo object for downloading the file. Only set once it's been retrieved from the pool.