FileSystemWritableFileStream extension type
The FileSystemWritableFileStream
interface of the File System API
is
a WritableStream object with additional convenience methods, which
operates on a single file on disk. The interface is accessed through the
FileSystemFileHandle.createWritable method.
- on
- Implemented types
Properties
Methods
-
abort(
[JSAny? reason]) → JSPromise< JSAny?> -
The
abort()
method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.inherited -
close(
) → JSPromise< JSAny?> -
The
close()
method of the WritableStream interface closes the associated stream. All chunks written before this method is called are sent before the returned promise is fulfilled.inherited -
getWriter(
) → WritableStreamDefaultWriter -
The
getWriter()
method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. While the stream is locked, no other writer can be acquired until this one is released.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
seek(
int position) → JSPromise< JSAny?> -
The
seek()
method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method. -
toString(
) → String -
A string representation of this object.
inherited
-
truncate(
int size) → JSPromise< JSAny?> -
The
truncate()
method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes. -
write(
FileSystemWriteChunkType data) → JSPromise< JSAny?> -
The
write()
method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited