Skip to content

Commit 28b76fd

Browse files
authored
FileSystemWritableFileStream not experimental after FF111 (#25120)
1 parent ae1abdd commit 28b76fd

File tree

4 files changed

+20
-40
lines changed

4 files changed

+20
-40
lines changed

files/en-us/web/api/filesystemwritablefilestream/index.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
title: FileSystemWritableFileStream
33
slug: Web/API/FileSystemWritableFileStream
44
page-type: web-api-interface
5-
status:
6-
- experimental
75
browser-compat: api.FileSystemWritableFileStream
86
---
97

10-
{{securecontext_header}}{{APIRef("File System Access API")}}{{SeeCompatTable}}
8+
{{securecontext_header}}{{APIRef("File System Access API")}}
119

1210
The **`FileSystemWritableFileStream`** interface of the {{domxref('File System Access API')}} is a {{domxref('WritableStream')}} object with additional convenience methods, which operates on a single file on disk. The interface is accessed through the {{domxref('FileSystemFileHandle.createWritable()')}} method.
1311

@@ -21,11 +19,11 @@ _Inherits properties from its parent, {{DOMxRef("WritableStream")}}._
2119

2220
_Inherits methods from its parent, {{DOMxRef("WritableStream")}}._
2321

24-
- {{domxref('FileSystemWritableFileStream.write')}} {{Experimental_Inline}}
22+
- {{domxref('FileSystemWritableFileStream.write')}}
2523
- : Writes content into the file the method is called on, at the current file cursor offset.
26-
- {{domxref('FileSystemWritableFileStream.seek')}} {{Experimental_Inline}}
24+
- {{domxref('FileSystemWritableFileStream.seek')}}
2725
- : Updates the current file cursor offset to the position (in bytes) specified.
28-
- {{domxref('FileSystemWritableFileStream.truncate')}} {{Experimental_Inline}}
26+
- {{domxref('FileSystemWritableFileStream.truncate')}}
2927
- : Resizes the file associated with the stream to be the specified size in bytes.
3028

3129
## Examples

files/en-us/web/api/filesystemwritablefilestream/seek/index.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
title: FileSystemWritableFileStream.seek()
33
slug: Web/API/FileSystemWritableFileStream/seek
44
page-type: web-api-instance-method
5-
status:
6-
- experimental
75
browser-compat: api.FileSystemWritableFileStream.seek
86
---
97

10-
{{securecontext_header}}{{APIRef("File System Access API")}}{{SeeCompatTable}}
8+
{{securecontext_header}}{{APIRef("File System Access API")}}
119

12-
The **`seek()`** method of the
13-
{{domxref("FileSystemWritableFileStream")}} interface updates the current file cursor
14-
offset to the position (in bytes) specified when calling the method.
10+
The **`seek()`** method of the {{domxref("FileSystemWritableFileStream")}} interface updates the current file cursor offset to the position (in bytes) specified when calling the method.
1511

1612
## Syntax
1713

files/en-us/web/api/filesystemwritablefilestream/truncate/index.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,19 @@
22
title: FileSystemWritableFileStream.truncate()
33
slug: Web/API/FileSystemWritableFileStream/truncate
44
page-type: web-api-instance-method
5-
status:
6-
- experimental
75
browser-compat: api.FileSystemWritableFileStream.truncate
86
---
97

10-
{{securecontext_header}}{{APIRef("File System Access API")}}{{SeeCompatTable}}
8+
{{securecontext_header}}{{APIRef("File System Access API")}}
119

12-
The **`truncate()`** method of the
13-
{{domxref("FileSystemWritableFileStream")}} interface resizes the file associated with
14-
the stream to be the specified size in bytes.
10+
The **`truncate()`** method of the {{domxref("FileSystemWritableFileStream")}} interface resizes the file associated with the stream to be the specified size in bytes.
1511

16-
If the size specified is larger than the current file size this pads the file with
17-
`null` bytes, otherwise it truncates the file.
12+
If the size specified is larger than the current file size this pads the file with `null` bytes, otherwise it truncates the file.
1813

19-
The file cursor is also updated when `truncate()` is called. If the offset
20-
is smaller than the size, it remains unchanged. If the offset is larger than size, the
21-
offset is set to that size. This ensures that subsequent writes do not error.
14+
The file cursor is also updated when `truncate()` is called.
15+
If the offset is smaller than the size, it remains unchanged.
16+
If the offset is larger than size, the offset is set to that size.
17+
This ensures that subsequent writes do not error.
2218

2319
No changes are written to the actual file on disk until the stream has been closed.
2420
Changes are typically written to a temporary file instead.

files/en-us/web/api/filesystemwritablefilestream/write/index.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,15 @@
22
title: FileSystemWritableFileStream.write()
33
slug: Web/API/FileSystemWritableFileStream/write
44
page-type: web-api-instance-method
5-
status:
6-
- experimental
75
browser-compat: api.FileSystemWritableFileStream.write
86
---
97

10-
{{securecontext_header}}{{APIRef("File System Access API")}}{{SeeCompatTable}}
8+
{{securecontext_header}}{{APIRef("File System Access API")}}
119

12-
The **`write()`** method of the
13-
{{domxref("FileSystemWritableFileStream")}} interface writes content into the file the
14-
method is called on, at the current file cursor offset.
10+
The **`write()`** method of the {{domxref("FileSystemWritableFileStream")}} interface writes content into the file the method is called on, at the current file cursor offset.
1511

1612
No changes are written to the actual file on disk until the stream has been closed.
17-
Changes are typically written to a temporary file instead. This method can also be used
18-
to seek to a byte point within the stream and truncate to modify the total bytes the
19-
file contains.
13+
Changes are typically written to a temporary file instead. This method can also be used to seek to a byte point within the stream and truncate to modify the total bytes the file contains.
2014

2115
## Syntax
2216

@@ -60,13 +54,10 @@ write(data)
6054

6155
## Examples
6256

63-
This asynchronous function opens the 'Save File' picker, which returns a
64-
{{domxref('FileSystemFileHandle')}} once a file is selected. From which a writable
65-
stream is then created using the {{domxref('FileSystemFileHandle.createWritable()')}}
66-
method.
57+
This asynchronous function opens the 'Save File' picker, which returns a {{domxref('FileSystemFileHandle')}} once a file is selected.
58+
From which a writable stream is then created using the {{domxref('FileSystemFileHandle.createWritable()')}} method.
6759

68-
A user defined {{domxref('Blob')}} is then written to the stream which is subsequently
69-
closed.
60+
A user defined {{domxref('Blob')}} is then written to the stream which is subsequently closed.
7061

7162
```js
7263
async function saveFile() {
@@ -84,8 +75,7 @@ async function saveFile() {
8475
}
8576
```
8677

87-
The following show different examples of options that can be passed into the
88-
`write()` method.
78+
The following show different examples of options that can be passed into the `write()` method.
8979

9080
```js
9181
// just pass in the data (no options)

0 commit comments

Comments
 (0)