The LockedFile interface provides tools to deal with a given with all the necessary locks.
The LockedFile interface provides tools to deal with a given with all the necessary locks.
(abort this)
Method.
The abort method is used to release the lock on the web.LockedFile
making it inactive: its web.active
property is set to false
all ongoing operations are canceled.
var request = instanceOfLockedFile.abort();
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/abort
Method. The abort method is used to release the lock on the `web.LockedFile` making it inactive: its `web.active` property is set to false all ongoing operations are canceled. `var request = instanceOfLockedFile.abort();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/abort`
(active this)
Property.
The active property allows to know if the web.LockedFile
object
still usable (true) or not (false). If the object is inactive
it is impossible to perform any read or write operation with
Typically, a web.LockedFile
object becomes inactive when the
method is called or if an error occurs.
var state = instanceOfLockedFile.active
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/active
Property. The active property allows to know if the `web.LockedFile` object still usable (true) or not (false). If the object is inactive it is impossible to perform any read or write operation with Typically, a `web.LockedFile` object becomes inactive when the method is called or if an error occurs. `var state = instanceOfLockedFile.active` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/active`
(append this data)
Method.
The append method is used to write some data at the end of the
var request = instanceOfLockedFile.append(data);
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/append
Method. The append method is used to write some data at the end of the `var request = instanceOfLockedFile.append(data);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/append`
(file-handle this)
Property.
The fileHandle property gives access to the file.FileHandle
that produced the web.LockedFile
object.
var handler = instanceOfLockedFile.fileHandle
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/fileHandle
Property. The fileHandle property gives access to the `file.FileHandle` that produced the `web.LockedFile` object. `var handler = instanceOfLockedFile.fileHandle` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/fileHandle`
(flush this)
Method.
The flush method is used to ensure any change made to a file properly written on disk.
var request = instanceOfLockedFile.flush();
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/flush
Method. The flush method is used to ensure any change made to a file properly written on disk. `var request = instanceOfLockedFile.flush();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/flush`
(get-metadata this param)
Method.
The getMetadata method allows to retrieve some metadata about locked file.
var request = instanceOfLockedFile.getMetadata(param);
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/getMetaData
Method. The getMetadata method allows to retrieve some metadata about locked file. `var request = instanceOfLockedFile.getMetadata(param);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/getMetaData`
(location this)
Property.
The location property is a zero-based index representing the of the read/write pointer within the file. Its value indicates which bytes within the file any write or read operation will
var location = instanceOfLockedFile.location
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/location
Property. The location property is a zero-based index representing the of the read/write pointer within the file. Its value indicates which bytes within the file any write or read operation will `var location = instanceOfLockedFile.location` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/location`
(mode this)
Property.
The mode property provides the read/write status of the web.LockedFile
var mode = instanceOfLockedFile.mode
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/mode
Property. The mode property provides the read/write status of the `web.LockedFile` `var mode = instanceOfLockedFile.mode` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/mode`
(onabort this)
Property.
Specifies an event listener to receive abort events. These events
when the locked file has been aborted with the web.LockedFile.abort()
`instanceOfLockedFile.onabort = funcRef;
Where funcRef is a function to be called when the abort event occurs.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/onabort
Property. Specifies an event listener to receive abort events. These events when the locked file has been aborted with the `web.LockedFile.abort()` `instanceOfLockedFile.onabort = funcRef; Where funcRef is a function to be called when the abort event occurs.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/onabort`
(oncomplete this)
Property.
Specifies an event listener to receive complete events. These occur each time a read or write operation is successful.
`instanceOfLockedFile.oncomplete = funcRef;
Where funcRef is a function to be called when the complete event occurs.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/oncomplete
Property. Specifies an event listener to receive complete events. These occur each time a read or write operation is successful. `instanceOfLockedFile.oncomplete = funcRef; Where funcRef is a function to be called when the complete event occurs.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/oncomplete`
(onerror this)
Property.
Specifies an event listener to receive error events. These events when something goes wrong.
`instanceOfLockedFile.onerror = funcRef;
Where funcRef is a function to be called when the error event occurs.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/onerror
Property. Specifies an event listener to receive error events. These events when something goes wrong. `instanceOfLockedFile.onerror = funcRef; Where funcRef is a function to be called when the error event occurs.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/onerror`
(read-as-array-buffer this size)
Method.
The readAsArrayBuffer method is used to read the content of the
object and provide the result of that reading as an web.ArrayBuffer
.
many ways, it performs like the file.FileReader.readAsArrayBuffer()
var request = instanceOfLockedFile.readAsArrayBuffer(size);
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/readAsArrayBuffer
Method. The readAsArrayBuffer method is used to read the content of the object and provide the result of that reading as an `web.ArrayBuffer`. many ways, it performs like the `file.FileReader.readAsArrayBuffer()` `var request = instanceOfLockedFile.readAsArrayBuffer(size);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/readAsArrayBuffer`
(read-as-text this & args)
Method.
The readAsText method is used to read the content of the web.LockedFile
and provide the result of that reading as a string. In many ways,
performs like the file.FileReader.readAsText()
method.
var request = instanceOfLockedFile.readAsText(size[, encoding]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/readAsText
Method. The readAsText method is used to read the content of the `web.LockedFile` and provide the result of that reading as a string. In many ways, performs like the `file.FileReader.readAsText()` method. `var request = instanceOfLockedFile.readAsText(size[, encoding]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/readAsText`
(set-active! this val)
Property.
The active property allows to know if the web.LockedFile
object
still usable (true) or not (false). If the object is inactive
it is impossible to perform any read or write operation with
Typically, a web.LockedFile
object becomes inactive when the
method is called or if an error occurs.
var state = instanceOfLockedFile.active
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/active
Property. The active property allows to know if the `web.LockedFile` object still usable (true) or not (false). If the object is inactive it is impossible to perform any read or write operation with Typically, a `web.LockedFile` object becomes inactive when the method is called or if an error occurs. `var state = instanceOfLockedFile.active` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/active`
(set-file-handle! this val)
Property.
The fileHandle property gives access to the file.FileHandle
that produced the web.LockedFile
object.
var handler = instanceOfLockedFile.fileHandle
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/fileHandle
Property. The fileHandle property gives access to the `file.FileHandle` that produced the `web.LockedFile` object. `var handler = instanceOfLockedFile.fileHandle` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/fileHandle`
(set-location! this val)
Property.
The location property is a zero-based index representing the of the read/write pointer within the file. Its value indicates which bytes within the file any write or read operation will
var location = instanceOfLockedFile.location
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/location
Property. The location property is a zero-based index representing the of the read/write pointer within the file. Its value indicates which bytes within the file any write or read operation will `var location = instanceOfLockedFile.location` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/location`
(set-mode! this val)
Property.
The mode property provides the read/write status of the web.LockedFile
var mode = instanceOfLockedFile.mode
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/mode
Property. The mode property provides the read/write status of the `web.LockedFile` `var mode = instanceOfLockedFile.mode` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/mode`
(set-onabort! this val)
Property.
Specifies an event listener to receive abort events. These events
when the locked file has been aborted with the web.LockedFile.abort()
`instanceOfLockedFile.onabort = funcRef;
Where funcRef is a function to be called when the abort event occurs.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/onabort
Property. Specifies an event listener to receive abort events. These events when the locked file has been aborted with the `web.LockedFile.abort()` `instanceOfLockedFile.onabort = funcRef; Where funcRef is a function to be called when the abort event occurs.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/onabort`
(set-oncomplete! this val)
Property.
Specifies an event listener to receive complete events. These occur each time a read or write operation is successful.
`instanceOfLockedFile.oncomplete = funcRef;
Where funcRef is a function to be called when the complete event occurs.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/oncomplete
Property. Specifies an event listener to receive complete events. These occur each time a read or write operation is successful. `instanceOfLockedFile.oncomplete = funcRef; Where funcRef is a function to be called when the complete event occurs.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/oncomplete`
(set-onerror! this val)
Property.
Specifies an event listener to receive error events. These events when something goes wrong.
`instanceOfLockedFile.onerror = funcRef;
Where funcRef is a function to be called when the error event occurs.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/onerror
Property. Specifies an event listener to receive error events. These events when something goes wrong. `instanceOfLockedFile.onerror = funcRef; Where funcRef is a function to be called when the error event occurs.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/onerror`
(truncate this start)
Method.
The truncate method is used to remove some data within the file.
var request = instanceOfLockedFile.truncate(start);
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/truncate
Method. The truncate method is used to remove some data within the file. `var request = instanceOfLockedFile.truncate(start);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/truncate`
(write this data)
Method.
The write method is used to write some data within the file.
var request = instanceOfLockedFile.write(data);
See also: https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/write
Method. The write method is used to write some data within the file. `var request = instanceOfLockedFile.write(data);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LockedFile/write`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close