Class Guacamole.BlobReader
Defined in: BlobReader.js.
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 Attributes | Method Name and Description |
---|---|
getBlob()
Returns the contents of this Guacamole.BlobReader as a Blob.
|
|
Returns the current length of this Guacamole.InputStream, in bytes.
|
Event Attributes | Event Name and Description |
---|---|
onend()
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.