TextDecoderStream
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2022年9月.
TextDecoderStream はエンコーディング API のインターフェイスで、UTF-8 などのバイナリーエンコーディングのテキストストリームを文字列ストリームに変換します。
これは TextDecoder と同等のストリームです。
コンストラクター
TextDecoderStream()-
新しい
TextDecoderStreamオブジェクトを作成します。
インスタンスプロパティ
TextDecoderStream.encoding読取専用-
エンコーディングです。
TextDecoderStream.fatal読取専用-
論理値で、エラーモードが fatal であるかどうかを示します。
TextDecoderStream.ignoreBOM読取専用-
論理値で、バイトオーダーマークを無視するかどうかを示します。
TextDecoderStream.readable読取専用-
このオブジェクトによって制御される
ReadableStreamのインスタンスを返します。 TextDecoderStream.writable読取専用-
このオブジェクトによって制御される
WritableStreamのインスタンスを返します。
例
仕様書
| Specification |
|---|
| Encoding> # interface-textdecoderstream> |
ブラウザーの互換性
Loading…