diff --git a/api/@ohos.util.d.ts b/api/@ohos.util.d.ts index a46db2c3e72eb067ef174f71cf47406543cdf3c8..93aee728c88f0c1b831e565dacb5a778366da3ad 100644 --- a/api/@ohos.util.d.ts +++ b/api/@ohos.util.d.ts @@ -126,6 +126,15 @@ declare namespace util { * @return return decoded text */ decode(input: Uint8Array, options?: { stream?: false }): string; + + /** + * Returns the result of running encoding's decoder. + * @since 9 + * @syscap SystemCapability.Utils.Lang + * @param input decoded numbers in accordance with the format + * @return return decoded text + */ + decodeWithStream(input: Uint8Array, options?: { stream?: boolean }): string; } class TextEncoder {