Module org.htmlunit

Interface WindowOrWorkerGlobalScope

All Known Implementing Classes:
DedicatedWorkerGlobalScope, Window, WorkerGlobalScope

public interface WindowOrWorkerGlobalScope
The WindowOrWorkerGlobalScope mixin describes several features common to Window and WorkerGlobalScope.
Author:
Ronald Brill
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    atob(String encodedData)
    Decodes a string of data that has been encoded using Base64 encoding.
    btoa(String stringToEncode)
    Creates a Base64-encoded ASCII string from a string of binary data.
  • Method Details

    • atob

      String atob(String encodedData)
      Decodes a string of data that has been encoded using Base64 encoding.
      Parameters:
      encodedData - the Base64-encoded string to decode
      Returns:
      the decoded value
    • btoa

      String btoa(String stringToEncode)
      Creates a Base64-encoded ASCII string from a string of binary data.
      Parameters:
      stringToEncode - the string to encode
      Returns:
      the Base64-encoded string