SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
BlobUtils is a portable, cross-browser utility library for working with Blob instances. See Blob.
Method Summary | |
<static>
void
|
asBinaryString(callback, blob)
Reads a string from a Blob and passes it as a parameter to the specified callback function. |
<static>
void
|
asNumberArray(callback, blob)
Read an Array of JavaScript Numbers from a Blob instance and passes it as a parameter to the specified callback function. |
<static>
String
|
asString(blob, start, end)
Reads a UTF-8 string from a Blob. |
<static>
Blob
|
fromBinaryString(byte)
Create a Blob from a Byte string. |
<static>
Blob
|
fromNumberArray(Number)
Create a Blob from a Number Array. |
<static>
Blob
|
fromString(string, endings)
Create a Blob from a String via UTF-8 encoding. |
Method Detail |
<static> void asBinaryString(callback, blob)
Function callback
Blob blob
void
<static> void asNumberArray(callback, blob)
Function callback
Blob blob
void
<static> String asString(blob, start, end)
Blob blob
Number start
- optional
Number end
- optional
String
the decoded string
<static> Blob fromBinaryString(byte)
String byte
- string
Blob
the new Blob instance.
<static> Blob fromNumberArray(Number)
Array Number
- Array
Blob
the new Blob instance.
<static> Blob fromString(string, endings)
Array string
String endings
- line ending style: "transparent" or "native"
Blob
the new Blob instance.