16 lines
326 B
Java
16 lines
326 B
Java
package org.gcube.portets.user.message_conversations.client;
|
|
/**
|
|
* simply encode base64 strings
|
|
* @author massi
|
|
*
|
|
*/
|
|
public class Encoder {
|
|
public static native String encode(String toEncode) /*-{
|
|
return btoa(toEncode);
|
|
}-*/;
|
|
|
|
public static native String decode(String toDecode) /*-{
|
|
return atob(toDecode);
|
|
}-*/;
|
|
}
|