TextEncoder
Text Encoder
TextEncoder
is part of the Encoding API, and provides facilities for encoding strings into, and decoding strings from, byte streams.
The TextEncoder
interface represents an encoder for a specific method, that is a specific character encoding, like UTF-8, ISO-8859-2, KOI8, etc.
Summary
Text encoders can be created anywhere within the JavaScript context, as the class is installed at the TextEncoder
symbol within the global namespace.
Inheritors
Types
Extends the base EncodingUtility.Factory to specialize it for the type TextEncoder.
Properties
Functions
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided output stream.
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided byte buffer.
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided writable channel.
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided byte array.