Package org.htmlunit.javascript.host
Interface WindowOrWorkerGlobalScope
-
- All Known Implementing Classes:
DedicatedWorkerGlobalScope
,Window
public interface WindowOrWorkerGlobalScope
The WindowOrWorkerGlobalScope mixin describes several features common to theWindow
and WorkerGlobalScope.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
atob(java.lang.String encodedData)
Decodes a string of data which has been encoded using base-64 encoding.java.lang.String
btoa(java.lang.String stringToEncode)
Creates a base-64 encoded ASCII string from a string of binary data.
-
-
-
Method Detail
-
atob
java.lang.String atob(java.lang.String encodedData)
Decodes a string of data which has been encoded using base-64 encoding.- Parameters:
encodedData
- the encoded string- Returns:
- the decoded value
-
btoa
java.lang.String btoa(java.lang.String stringToEncode)
Creates a base-64 encoded ASCII string from a string of binary data.- Parameters:
stringToEncode
- string to encode- Returns:
- the encoded string
-
-