decodeText(arrayBuffer, encoding = "utf-8") {
		const isJson = encoding === "json";
		if (isJson) encoding = "utf-8";

		const uint8Array = new Uint8Array(arrayBuffer);
		const result = new TextDecoder(encoding).decode(uint8Array);
		if (isJson) {
			return this.parseJSON(result);
		}
		return result;
	}
@deprecated This method is deprecated, use 'encodings.decode' instead.
Decodes arrayBuffer to String according given encoding type
@param {ArrayBuffer} arrayBuffer
@param {String} [encoding='utf-8']