2009/dap/file-system file-dir-sys.html,1.15,1.16

Update of /sources/public/2009/dap/file-system
In directory hutz:/tmp/cvs-serv17980

Modified Files:
	file-dir-sys.html 
Log Message:
Same as the last fix, but for file() instead of createWriter.


Index: file-dir-sys.html
===================================================================
RCS file: /sources/public/2009/dap/file-system/file-dir-sys.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- file-dir-sys.html	25 Aug 2010 18:24:22 -0000	1.15
+++ file-dir-sys.html	25 Aug 2010 18:33:19 -0000	1.16
@@ -824,21 +824,21 @@
               </dd>
             </dl>
           </dd>
-          <dt>File file ()</dt>
+          <dt>void file ()</dt>
           <dd>
             <p>
               Returns a <code>File</code> that represents the current state of
               the file that this <code>FileEntry</code> represents.
             </p>
-            <dl class='exception' title='FileException'>
-              <dt>NOT_FOUND_ERR</dt>
-              <dd>The entry no longer exists.</dd>
-              <dt>INVALID_STATE_ERR</dt>
-              <dd>This FileEntry is no longer valid for some reason other
-              than it having been deleted.</dd>
-              <dt>SECURITY_ERR</dt>
-              <dd>The <a>user agent</a> determined that it was not safe to carry
-              out this action.</dd>
+            <dl class='parameters'>
+              <dt>FileCallback successCallback</dt>
+              <dd>
+                A callback that is called with the new <a>FileWriter</a>.
+              </dd>
+              <dt>optional ErrorCallback errorCallback</dt>
+              <dd>
+                A callback that is called when errors happen.
+              </dd>
             </dl>
           </dd>
         </dl>
@@ -923,14 +923,32 @@
         <section>
           <h2>The <code>FileWriterCallback</code> interface</h2>
           <p>
-          This interface is the callback used to create a <a>FileWriter</a>.
+          This interface is the callback used to create a
+          <code>FileWriter</code>.
           </p>
           <dl title='[NoInterfaceObject, Callback=FunctionOnly] interface
               FileWriterCallback' class='idl'>
             <dt>void handleEvent (FileWriter fileWriter)</dt>
             <dd>
               <p>
-              Used to supply a <a>FileWriter</a> as a response to a user query.
+              Used to supply a <code>FileWriter</code> as a response to a user
+              query.
+              </p>
+            </dd>
+          </dl>
+        </section>
+
+        <section>
+          <h2>The <code>FileCallback</code> interface</h2>
+          <p>
+          This interface is the callback used to obtain a <code>File</code>.
+          </p>
+          <dl title='[NoInterfaceObject, Callback=FunctionOnly] interface
+              FileCallback' class='idl'>
+            <dt>void handleEvent (File file)</dt>
+            <dd>
+              <p>
+              Used to supply a <code>File</code> as a response to a user query.
               </p>
             </dd>
           </dl>

Received on Wednesday, 25 August 2010 18:33:24 UTC