TextDecoderStream
TextDecoderStream はエンコーディング API のインターフェイスで、UTF-8 などのバイナリーエンコーディングのテキストストリームを文字列ストリームに変換します。
これは TextDecoder と同等のストリームです。
コンストラクター
TextDecoderStream()-
新しい
TextDecoderStreamオブジェクトを作成します。
インスタンスプロパティ
TextDecoderStream.encoding読取専用-
エンコーディングです。
TextDecoderStream.fatal読取専用-
論理値で、エラーモードが fatal であるかどうかを示します。
TextDecoderStream.ignoreBOM読取専用-
論理値で、バイトオーダーマークを無視するかどうかを示します。
TextDecoderStream.readable読取専用-
このオブジェクトによって制御される
ReadableStreamのインスタンスを返します。 TextDecoderStream.writable読取専用-
このオブジェクトによって制御される
WritableStreamのインスタンスを返します。
例
仕様書
| Specification |
|---|
| Encoding Standard # interface-textdecoderstream |
ブラウザーの互換性
BCD tables only load in the browser