TextDecoderStream

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

TextDecoderStreamエンコーディング API のインターフェイスで、UTF-8 などのバイナリーエンコーディングのテキストストリームを文字列ストリームに変換します。 これは TextDecoder と同等のストリームです。

コンストラクター

TextDecoderStream()

新しい TextDecoderStream オブジェクトを作成します。

インスタンスプロパティ

TextDecoderStream.encoding 読取専用

エンコーディングです。

TextDecoderStream.fatal 読取専用

論理値で、エラーモードが fatal であるかどうかを示します。

TextDecoderStream.ignoreBOM 読取専用

論理値で、バイトオーダーマークを無視するかどうかを示します。

TextDecoderStream.readable 読取専用

このオブジェクトによって制御される ReadableStream のインスタンスを返します。

TextDecoderStream.writable 読取専用

このオブジェクトによって制御される WritableStream のインスタンスを返します。

仕様書

Specification
Encoding
# interface-textdecoderstream

ブラウザーの互換性

関連情報