TextDecoderStream
open class TextDecoderStream(label: String = definedExternally, options: TextDecoderOptions = definedExternally) : GenericTransformStream, TextDecoderCommon(source)
The TextDecoderStream interface of the Encoding 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 of TextDecoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
Properties
Link copied to clipboard
The readable read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings.
Link copied to clipboard
The writable read-only property of the TextDecoderStream interface returns a WritableStream that accepts binary data, in the form of ArrayBuffer, TypedArray, or DataView chunks (SharedArrayBuffer and its views are also allowed), to be decoded into strings.