<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="File.progressEventTarget-c.html"> <link rel="Up" href="File.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of class methods" rel=Appendix href="index_methods.html"> <link title="Index of class types" rel=Appendix href="index_class_types.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="CSS" rel="Chapter" href="CSS.html"> <link title="Dom" rel="Chapter" href="Dom.html"> <link title="Dom_events" rel="Chapter" href="Dom_events.html"> <link title="Dom_html" rel="Chapter" href="Dom_html.html"> <link title="Event_arrows" rel="Chapter" href="Event_arrows.html"> <link title="File" rel="Chapter" href="File.html"> <link title="Firebug" rel="Chapter" href="Firebug.html"> <link title="Form" rel="Chapter" href="Form.html"> <link title="Js" rel="Chapter" href="Js.html"> <link title="Json" rel="Chapter" href="Json.html"> <link title="Lwt_js" rel="Chapter" href="Lwt_js.html"> <link title="Lwt_js_events" rel="Chapter" href="Lwt_js_events.html"> <link title="Regexp" rel="Chapter" href="Regexp.html"> <link title="Typed_array" rel="Chapter" href="Typed_array.html"> <link title="Url" rel="Chapter" href="Url.html"> <link title="WebGL" rel="Chapter" href="WebGL.html"> <link title="XmlHttpRequest" rel="Chapter" href="XmlHttpRequest.html"><title>File.fileReader</title> </head> <body> <div class="navbar"><a class="pre" href="File.progressEventTarget-c.html" title="File.progressEventTarget">Previous</a> <a class="up" href="File.html" title="File">Up</a> </div> <h1>Class type <a href="type_File.fileReader.html">File.fileReader</a></h1> <pre><span id="TYPEfileReader"><span class="keyword">class type</span> fileReader</span> = <code class="code">object</code> <a href="File.fileReader-c.html">..</a> <code class="code">end</code></pre><b>Inherits</b><ul> <li><a href="File.progressEventTarget-c.html"><code class="code">File.progressEventTarget</code></a></li> </ul> <hr width="100%"> <pre><span id="METHODreadAsArrayBuffer"><span class="keyword">method</span> readAsArrayBuffer</span> : <code class="type">'a. (#<a href="File.blob-c.html">blob</a> as 'a) <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a></code></pre><pre><span id="METHODreadAsBinaryString"><span class="keyword">method</span> readAsBinaryString</span> : <code class="type">'b. (#<a href="File.blob-c.html">blob</a> as 'b) <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a></code></pre><pre><span id="METHODreadAsText"><span class="keyword">method</span> readAsText</span> : <code class="type">'c. (#<a href="File.blob-c.html">blob</a> as 'c) <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a></code></pre><pre><span id="METHODreadAsText_withEncoding"><span class="keyword">method</span> readAsText_withEncoding</span> : <code class="type">'d. (#<a href="File.blob-c.html">blob</a> as 'd) <a href="Js.html#TYPEt">Js.t</a> -> <a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a></code></pre><pre><span id="METHODreadAsDataURL"><span class="keyword">method</span> readAsDataURL</span> : <code class="type">'e. (#<a href="File.blob-c.html">blob</a> as 'e) <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a></code></pre><pre><span id="METHODabort"><span class="keyword">method</span> abort</span> : <code class="type">unit <a href="Js.html#TYPEmeth">Js.meth</a></code></pre><pre><span id="METHODreadyState"><span class="keyword">method</span> readyState</span> : <code class="type"><a href="File.html#TYPEreadyState">readyState</a> <a href="Js.html#TYPEreadonly_prop">Js.readonly_prop</a></code></pre><pre><span id="METHODresult"><span class="keyword">method</span> result</span> : <code class="type"><a href="File.html#TYPEfile_any">file_any</a> <a href="Js.html#TYPEreadonly_prop">Js.readonly_prop</a></code></pre><pre><span id="METHODerror"><span class="keyword">method</span> error</span> : <code class="type"><a href="File.fileError-c.html">fileError</a> <a href="Js.html#TYPEt">Js.t</a> <a href="Js.html#TYPEreadonly_prop">Js.readonly_prop</a></code></pre><pre><span id="METHODonloadstart"><span class="keyword">method</span> onloadstart</span> : <code class="type">((< abort : unit <a href="Js.html#TYPEmeth">Js.meth</a>; error : <a href="File.fileError-c.html">fileError</a> <a href="Js.html#TYPEt">Js.t</a> <a href="Js.html#TYPEreadonly_prop">Js.readonly_prop</a>;<br> onabort : ('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a><br> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a>;<br> onerror : ('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a><br> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a>;<br> onload : ('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a><br> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a>;<br> onloadend : ('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a><br> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a>;<br> onloadstart : 'f;<br> onprogress : ('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a><br> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a>;<br> readAsArrayBuffer : 'h. (#<a href="File.blob-c.html">blob</a> as 'h) <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a>;<br> readAsBinaryString : 'i. (#<a href="File.blob-c.html">blob</a> as 'i) <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a>;<br> readAsDataURL : 'j. (#<a href="File.blob-c.html">blob</a> as 'j) <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a>;<br> readAsText : 'k. (#<a href="File.blob-c.html">blob</a> as 'k) <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a>;<br> readAsText_withEncoding : 'l.<br> (#<a href="File.blob-c.html">blob</a> as 'l) <a href="Js.html#TYPEt">Js.t</a> -><br> <a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> -> unit <a href="Js.html#TYPEmeth">Js.meth</a>;<br> readyState : <a href="File.html#TYPEreadyState">readyState</a> <a href="Js.html#TYPEreadonly_prop">Js.readonly_prop</a>;<br> result : <a href="File.html#TYPEfile_any">file_any</a> <a href="Js.html#TYPEreadonly_prop">Js.readonly_prop</a>; .. ><br> as 'g)<br> <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>)<br> <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a> as 'f</code></pre><pre><span id="METHODonprogress"><span class="keyword">method</span> onprogress</span> : <code class="type">('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a></code></pre><pre><span id="METHODonload"><span class="keyword">method</span> onload</span> : <code class="type">('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a></code></pre><pre><span id="METHODonabort"><span class="keyword">method</span> onabort</span> : <code class="type">('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a></code></pre><pre><span id="METHODonerror"><span class="keyword">method</span> onerror</span> : <code class="type">('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a></code></pre><pre><span id="METHODonloadend"><span class="keyword">method</span> onloadend</span> : <code class="type">('g <a href="Js.html#TYPEt">Js.t</a>, 'g <a href="File.progressEvent-c.html">progressEvent</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a> <a href="Js.html#TYPEwriteonly_prop">Js.writeonly_prop</a></code></pre></body></html>