Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. TextDecoderStream

TextDecoderStream

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨September 2022⁩.

Note: This feature is available inWeb Workers.

TheTextDecoderStream interface of theEncoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.It is the streaming equivalent ofTextDecoder.

Constructor

TextDecoderStream()

Creates a newTextDecoderStream object.

Instance properties

TextDecoderStream.encodingRead only

An encoding.

TextDecoderStream.fatalRead only

Aboolean indicating if the error mode is fatal.

TextDecoderStream.ignoreBOMRead only

Aboolean indicating whether the byte order mark is ignored.

TextDecoderStream.readableRead only

Returns theReadableStream instance controlled by this object.

TextDecoderStream.writableRead only

Returns theWritableStream instance controlled by this object.

Examples

Examples of streaming structured data and HTML

Specifications

Specification
Encoding
# interface-textdecoderstream

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp