| Index: lib/io.js |
| =================================================================== |
| --- a/lib/io.js |
| +++ b/lib/io.js |
| @@ -64,17 +64,17 @@ let IO = exports.IO = |
| return null; |
| }, |
| /** |
| * Reads strings from a file asynchronously, calls listener.process() with |
| * each line read and with a null parameter once the read operation is done. |
| * The callback will be called when the operation is done. |
| */ |
| - readFromFile: function(/**nsIFile*/ file, /**Boolean*/ decode, /**Object*/ listener, /**Function*/ callback, /**String*/ timeLineID) |
| + readFromFile: function(/**nsIFile*/ file, /**Object*/ listener, /**Function*/ callback, /**String*/ timeLineID) |
| { |
| try |
| { |
| let processing = false; |
| let buffer = ""; |
| let loaded = false; |
| let error = null; |
| @@ -198,20 +198,20 @@ let IO = exports.IO = |
| } |
| catch (e) |
| { |
| callback(e); |
| } |
| }, |
| /** |
| - * Writes string data to a file asynchronously, optionally encodes it into |
| - * UTF-8 first. The callback will be called when the write operation is done. |
| + * Writes string data to a file in UTF-8 format asynchronously. The callback |
| + * will be called when the write operation is done. |
| */ |
| - writeToFile: function(/**nsIFile*/ file, /**Boolean*/ encode, /**Iterator*/ data, /**Function*/ callback, /**String*/ timeLineID) |
| + writeToFile: function(/**nsIFile*/ file, /**Iterator*/ data, /**Function*/ callback, /**String*/ timeLineID) |
| { |
| try |
| { |
| let encoder = new TextEncoder(); |
| Task.spawn(function() |
| { |
| // This mimics OS.File.writeAtomic() but writes in chunks. |