TextDecoderStream

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

コンストラクター

TextDecoderStream()

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

インスタンスプロパティ

TextDecoderStream.encoding 読取専用

エンコーディングです。

TextDecoderStream.fatal 読取専用

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

TextDecoderStream.ignoreBOM 読取専用

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

TextDecoderStream.readable 読取専用

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

TextDecoderStream.writable 読取専用

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

仕様書

Specification
Encoding
# interface-textdecoderstream

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
TextDecoderStream
TextDecoderStream() constructor
encoding
fatal
ignoreBOM
readable
writable

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Has more compatibility info.

関連情報