Writer interface.
Methods
write(data, encodingopt)
Write to source.
Arguments:
-
data
(ArrayBuffer|Object|String)
 Data to write. If Object - it stringify before write
-
[encoding]
(String)
 Encode data to encoding
before write. Default to utf-8
in case data is String or bin
in case data is ArrayBuffer.
One of "utf-8"|"ucs2"|"bin"|"base64".
data
(ArrayBuffer|Object|String)
 Data to write. If Object - it stringify before write
[encoding]
(String)
 Encode data to encoding
before write. Default to utf-8
in case data is String or bin
in case data is ArrayBuffer.
One of "utf-8"|"ucs2"|"bin"|"base64".