TextDecoder
Text Decoder
TextDecoder
is part of the Encoding API (in JavaScript), and is responsible for decoding byte streams into strings using a specific character encoding.
The TextDecoder
interface represents a decoder for a specific method, that is a specific character encoding, like UTF-8, ISO-8859-2, KOI8, etc.
Summary
Text decoders can be created anywhere within the JavaScript context, as the class is installed at the TextDecoder
symbol within the global namespace.
Inheritors
Types
Specifies options for calls to TextDecoder.decode.
Models constructor methods for TextDecoder instances; such objects can be constructed with no parameters, with an optional "label" (the encoding to decode from), and a set of options.
Specifies options for TextDecoder instances; instances of these options can be provided to the TextDecoder constructor to specify how the decoder should behave.
Properties
Functions
Decodes a byte stream into a string.
Decodes an input stream of bytes into a string.
Consumes and decodes an input buffer of bytes to a string.
Consumes and decodes an input channel into a string.
Decodes a byte array into a string.
Decodes a ByteBuffer using the provided options and this text decoder's assigned encoding.
Decodes a byte stream into a string, potentially with options; this method is for host-side dispatch only.
Decodes a byte stream into a string, potentially with options.