API documentation automatically generated by docmeteor.
File: "client/Blob.js" Where: {client}
Blob.js
A Blob implementation.
2013-06-20
By Eli Grey, http:
By Devin Samarin, https:
License: X11/MIT
See LICENSE.md
- ### <a name="if "></a>if {any} <sub><i>Client</i></sub> ###
global unescape jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true, plusplus: true
if ((typeof Blob !== ``` client/Blob.js:17
File: "client/data-man-api.js" Where: {client}
Arguments
The data that you want to manipulate.
The data content (MIME) type, if known. Required if the first argument is an ArrayBuffer, Uint8Array, or URL
DataMan = function DataMan(data, type) { ...
client/data-man-api.js:8
-
This method getBlob is defined in prototype
of DataMan
Arguments
callback(error, blob)
Returns {undefined}
Passes a Blob representing this data to a callback.
DataMan.prototype.getBlob = function dataManGetBlob(callback) { ...
client/data-man-api.js:52
-
This method getBinary is defined in prototype
of DataMan
Arguments
First byte position to read.
Last byte position to read.
callback(error, binaryData)
Returns {undefined}
Passes a Uint8Array representing this data to a callback.
DataMan.prototype.getBinary = function dataManGetBinary(start, end, callback) { ...
client/data-man-api.js:84
-
This method saveAs is defined in prototype
of DataMan
Arguments
Returns {undefined}
Tells the browser to save the data like a normal downloaded file, using the provided filename.
DataMan.prototype.saveAs = function dataManSaveAs(filename) { ...
client/data-man-api.js:146
-
This method getDataUri is defined in prototype
of DataMan
Arguments
callback(err, dataUri)
DataMan.prototype.getDataUri = function dataManGetDataUri(callback) { ...
client/data-man-api.js:166
-
This method type is defined in prototype
of DataMan
Returns the type of the data.
DataMan.prototype.type = function dataManType() { ...
client/data-man-api.js:227
-
This method is private
Arguments
The data URI
The content type
Returns {Blob} A new Blob instance
Converts a data URI to a Blob.
function dataURItoBlob(dataURI, dataTYPE) { ...
client/data-man-api.js:240
-
This method is private
Arguments
Returns {undefined}
Can be used as a default callback for client methods that need a callback. Simply throws the provided error if there is one.
function defaultCallback(err) { ...
client/data-man-api.js:255
File: "server/data-man-api.js" Where: {server}
Arguments
The data that you want to manipulate.
The data content (MIME) type, if known. Required if the first argument is a Buffer, ArrayBuffer, Uint8Array, or URL
DataMan = function DataMan(data, type) { ...
server/data-man-api.js:10
-
This method getBuffer is defined in prototype
of DataMan
Arguments
callback(err, buffer)
Returns {Buffer|undefined}
Returns a Buffer representing this data, or passes the Buffer to a callback.
DataMan.prototype.getBuffer = function dataManGetBuffer(callback) { ...
server/data-man-api.js:54
-
This method saveToFile is defined in prototype
of DataMan
Returns {undefined}
Saves this data to a filepath on the local filesystem.
DataMan.prototype.saveToFile = function dataManSaveToFile(filePath) { ...
server/data-man-api.js:66
-
This method getDataUri is defined in prototype
of DataMan
Arguments
callback(err, dataUri)
If no callback, returns the data URI.
DataMan.prototype.getDataUri = function dataManGetDataUri(callback) { ...
server/data-man-api.js:84
-
This method createReadStream is defined in prototype
of DataMan
Returns a read stream for the data.
DataMan.prototype.createReadStream = function dataManCreateReadStream() { ...
server/data-man-api.js:95
-
This method size is defined in prototype
of DataMan
Arguments
callback(err, size)
If no callback, returns the size in bytes of the data.
DataMan.prototype.size = function dataManSize(callback) { ...
server/data-man-api.js:106
-
This method type is defined in prototype
of DataMan
Returns the type of the data.
DataMan.prototype.type = function dataManType() { ...
server/data-man-api.js:117
File: "server/data-man-buffer.js" Where: {server}
This method Buffer is defined in DataMan
Arguments
The data content (MIME) type.
DataMan.Buffer = function DataManBuffer(buffer, type) { ...
server/data-man-buffer.js:10
-
This method is private
This method getBuffer is defined in prototype
of DataMan.Buffer
Arguments
callback(err, buffer)
Returns {Buffer|undefined}
Passes a Buffer representing the data to a callback.
DataMan.Buffer.prototype.getBuffer = function dataManBufferGetBuffer(callback) { ...
server/data-man-buffer.js:24
-
This method is private
This method getDataUri is defined in prototype
of DataMan.Buffer
Arguments
callback(err, dataUri)
Passes a data URI representing the data in the buffer to a callback.
DataMan.Buffer.prototype.getDataUri = function dataManBufferGetDataUri(callback) { ...
server/data-man-buffer.js:35
-
This method is private
This method createReadStream is defined in prototype
of DataMan.Buffer
Returns a read stream for the data.
DataMan.Buffer.prototype.createReadStream = function dataManBufferCreateReadStream() { ...
server/data-man-buffer.js:51
-
This method is private
This method size is defined in prototype
of DataMan.Buffer
Arguments
callback(err, size)
Passes the size in bytes of the data in the buffer to a callback.
DataMan.Buffer.prototype.size = function dataManBufferSize(callback) { ...
server/data-man-buffer.js:62
-
This method is private
This method type is defined in prototype
of DataMan.Buffer
Returns the type of the data.
DataMan.Buffer.prototype.type = function dataManBufferType() { ...
server/data-man-buffer.js:80
File: "server/data-man-datauri.js" Where: {server}
This method DataURI is defined in DataMan
Arguments
DataMan.DataURI = function DataManDataURI(dataUri) { ...
server/data-man-datauri.js:7
File: "server/data-man-filepath.js" Where: {server}
This method FilePath is defined in DataMan
Arguments
The data content (MIME) type. Will lookup from file if not passed.
DataMan.FilePath = function DataManFilePath(filepath, type) { ...
server/data-man-filepath.js:11
-
This method is private
This method getBuffer is defined in prototype
of DataMan.FilePath
Arguments
callback(err, buffer)
Returns {Buffer|undefined}
Passes a Buffer representing the data to a callback.
DataMan.FilePath.prototype.getBuffer = function dataManFilePathGetBuffer(callback) { ...
server/data-man-filepath.js:25
-
This method is private
This method getDataUri is defined in prototype
of DataMan.FilePath
Arguments
callback(err, dataUri)
Passes a data URI representing the data to a callback.
DataMan.FilePath.prototype.getDataUri = function dataManFilePathGetDataUri(callback) { ...
server/data-man-filepath.js:43
-
This method is private
This method createReadStream is defined in prototype
of DataMan.FilePath
Returns a read stream for the data.
DataMan.FilePath.prototype.createReadStream = function dataManFilePathCreateReadStream() { ...
server/data-man-filepath.js:67
-
This method is private
This method size is defined in prototype
of DataMan.FilePath
Arguments
callback(err, size)
Passes the size in bytes of the data to a callback.
DataMan.FilePath.prototype.size = function dataManFilePathSize(callback) { ...
server/data-man-filepath.js:79
-
This method is private
This method type is defined in prototype
of DataMan.FilePath
Returns the type of the data.
DataMan.FilePath.prototype.type = function dataManFilePathType() { ...
server/data-man-filepath.js:104
File: "server/data-man-url.js" Where: {server}
This method URL is defined in DataMan
Arguments
The data content (MIME) type.
DataMan.URL = function DataManURL(url, type) { ...
server/data-man-url.js:10
-
This method is private
This method getBuffer is defined in prototype
of DataMan.URL
Arguments
callback(err, buffer)
Returns {Buffer|undefined}
Passes a Buffer representing the data at the URL to a callback.
DataMan.URL.prototype.getBuffer = function dataManUrlGetBuffer(callback) { ...
server/data-man-url.js:24
-
This method is private
This method getDataUri is defined in prototype
of DataMan.URL
Arguments
callback(err, dataUri)
Passes a data URI representing the data at the URL to a callback.
DataMan.URL.prototype.getDataUri = function dataManUrlGetDataUri(callback) { ...
server/data-man-url.js:57
-
This method is private
This method createReadStream is defined in prototype
of DataMan.URL
Returns a read stream for the data.
DataMan.URL.prototype.createReadStream = function dataManUrlCreateReadStream() { ...
server/data-man-url.js:85
-
This method is private
This method size is defined in prototype
of DataMan.URL
Arguments
callback(err, size)
Returns the size in bytes of the data at the URL.
DataMan.URL.prototype.size = function dataManUrlSize(callback) { ...
server/data-man-url.js:97
-
This method is private
This method type is defined in prototype
of DataMan.URL
Returns the type of the data.
DataMan.URL.prototype.type = function dataManUrlType() { ...
server/data-man-url.js:121