Class Index | File Index

Classes


Class Guacamole.BlobReader


Defined in: BlobReader.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Guacamole.BlobReader(stream, mimetype)
A reader which automatically handles the given input stream, assembling all received blobs into a single blob by appending them to each other in order.
Method Summary
Method Attributes Method Name and Description
 
Returns the contents of this Guacamole.BlobReader as a Blob.
 
Returns the current length of this Guacamole.InputStream, in bytes.
Event Summary
Event Attributes Event Name and Description
 
Fired once this stream is finished and no further data will be written.
 
onprogress(length)
Fired once for every blob of data received.
Class Detail
Guacamole.BlobReader(stream, mimetype)
A reader which automatically handles the given input stream, assembling all received blobs into a single blob by appending them to each other in order. Note that this object will overwrite any installed event handlers on the given Guacamole.InputStream.
Parameters:
{Guacamole.InputStream} stream
The stream that data will be read from.
{String} mimetype
The mimetype of the blob being built.
Method Detail
{Blob} getBlob()
Returns the contents of this Guacamole.BlobReader as a Blob.
Returns:
{Blob} The contents of this Guacamole.BlobReader.

{Number} getLength()
Returns the current length of this Guacamole.InputStream, in bytes.
Returns:
{Number} The current length of this Guacamole.InputStream.
Event Detail
onend()
Fired once this stream is finished and no further data will be written.

onprogress(length)
Fired once for every blob of data received.
Parameters:
{Number} length
The number of bytes received.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 10 2015 21:35:44 GMT-0700 (PDT)