@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="TextEncoder")
public class TextEncoder
extends JsObject
| Constructor and Description |
|---|
TextEncoder()
The TextEncoder() constructor returns a newly created utf-8 TextEncoder object.
|
| Modifier and Type | Method and Description |
|---|---|
Uint8Array |
encode()
The TextEncoder.prototype.encode() method takes a USVString as input, and returns a Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
|
Uint8Array |
encode(java.lang.String input)
The TextEncoder.prototype.encode() method takes a USVString as input, and returns a Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
|
TextEncoderEncodeIntoResult |
encodeInto(java.lang.String source,
Uint8Array destination)
The TextEncoder.prototype.encodeInto() method takes a USVString to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
|
java.lang.String |
encoding()
The TextEncoder.encoding read-only property returns a DOMString containing the name of the encoding algorithm used by the specific encoder.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic TextEncoder()
@JsProperty(name="encoding") @Nonnull public java.lang.String encoding()
@Nonnull public Uint8Array encode(@Nonnull java.lang.String input)
@Nonnull public Uint8Array encode()
@Nonnull public TextEncoderEncodeIntoResult encodeInto(@Nonnull java.lang.String source, @Nonnull Uint8Array destination)