Beispiel #1
0
 /// <summary>
 /// Reads text file
 /// </summary>
 /// <param name="file">the file object to read</param>
 /// <param name="encoding">the encoding to use to encode the file's content. Default is UTF8.</param>
 /// <example>
 /// usage
 /// <code>
 /// function win(file) {
 ///    var reader = new FileReader();
 ///    reader.onloadend = function(evt) {
 ///        console.log("read success");
 ///        console.log(evt.target.result);
 ///    };
 ///    reader.readAsText(file);
 ///};
 ///var fail = function(evt) {
 ///    console.log(error.code);
 ///};
 ///entry.file(win, fail);
 /// </code>
 /// </example>
 public void readAsText(File file, JsString encoding) { }
Beispiel #2
0
 /// <summary>
 /// Read file and return data as a base64 encoded data url.
 /// </summary>
 /// <param name="file"></param>
 /// <returns></returns>
 /// <example>
 /// usage
 /// <code>
 /// function win(file) {
 ///    var reader = new FileReader();
 ///    reader.onloadend = function(evt) {
 ///        console.log("read success");
 ///        console.log(evt.target.result);
 ///    };
 ///    reader.readAsDataURL(file);
 ///};
 ///var fail = function(evt) {
 ///    console.log(error.code);
 ///};
 ///entry.file(win, fail);
 /// </code>
 /// </example>
 public JsString readAsText(File file) { return null; }