goog.fs
Namespacegoog.fs.DirectoryEntry
ClassA directory in a local FileSystem. This should not be instantiated directly. Instead, it should be accessed via {@link goog.fs.FileSystem#getRoot} or {@link goog.fs.DirectoryEntry#getDirectoryEntry}. … more
goog.fs.Entry
ClassThe abstract class for entries in the filesystem. … more
goog.fs.Error
ClassA filesystem error. Since the filesystem API is asynchronous, stack traces are less useful for identifying where errors come from, so this includes a large amount of metadata in the message. … more
goog.fs.FileEntry
ClassA file in a local filesystem. This should not be instantiated directly. Instead, it should be accessed via {@link goog.fs.DirectoryEntry#getDirectoryEntry}. … more
goog.fs.FileReader
ClassAn object for monitoring the reading of files. This emits ProgressEvents of the types listed in {@link goog.fs.FileReader.EventType}. … more
goog.fs.FileSaver
ClassAn object for monitoring the saving of files. This emits ProgressEvents of the types listed in {@link goog.fs.FileSaver.EventType}. This should not be instantiated directly. Instead, its subclass {@link goog.fs.FileWriter} should be accessed via {@link goog.fs.FileEntry#createWriter}. … more
goog.fs.FileSystem
ClassA local filesystem. This shouldn't be instantiated directly. Instead, it should be accessed via {@link goog.fs.getTemporary} or {@link goog.fs.getPersistent}. … more
goog.fs.FileWriter
ClassAn object for monitoring the saving of files, as well as other fine-grained writing operations. This should not be instantiated directly. Instead, it should be accessed via {@link goog.fs.FileEntry#createWriter}. … more
goog.fs.ProgressEvent
ClassA wrapper for the progress events emitted by the File APIs. … more
.UrlObject_
.blobToString(blob, opt_encoding)
[deprecated]Deprecated. Use {@link goog.fs.FileReader.readAsText} instead.
Converts a Blob or a File into a string. This should only be used when the blob is known to be small.
blob
{!Blob
}
opt_encoding
{string
=}
goog.async.Deferred
}
.createObjectUrl(blob)
Creates a blob URL for a blob object.
blob
{!Blob
}
string
}
.getBlob(var_args)
Concatenates one or more values together and converts them to a Blob.
var_args
{...(string
|!Blob
|!ArrayBuffer
)}
Blob
}
.getPersistent(size)
Returns a persistent FileSystem object. A persistent filesystem will never be deleted without the user's or application's authorization.
size
{number
}
goog.async.Deferred
}
.getTemporary(size)
Returns a temporary FileSystem object. A temporary filesystem may be deleted by the user agent at its discretion.
size
{number
}
goog.async.Deferred
}
.revokeObjectUrl(url)
Revokes a URL created by {@link goog.fs.createObjectUrl}.
url
{string
}
.sliceBlob(blob, start, opt_end)
Slices the blob. The returned blob contains data from the start byte (inclusive) till the end byte (exclusive). Negative indices can be used to count bytes from the end of the blob (-1 == blob.size - 1). Indices are always clamped to blob range. If end is omitted, all the data till the end of the blob is taken.
blob
{!Blob
}
start
{number
}
opt_end
{number
=}
Blob
}