Class AndroidBase64UrlSafeEncoder
- java.lang.Object
-
- org.jivesoftware.smack.util.stringencoder.android.AndroidBase64UrlSafeEncoder
-
- All Implemented Interfaces:
StringEncoder<String>
public final class AndroidBase64UrlSafeEncoder extends Object implements StringEncoder<String>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decode(String string)
Decodes a string back to it's initial representation.String
encode(String string)
Encodes an object to another representation.static AndroidBase64UrlSafeEncoder
getInstance()
-
-
-
Method Detail
-
getInstance
public static AndroidBase64UrlSafeEncoder getInstance()
-
encode
public String encode(String string)
Description copied from interface:StringEncoder
Encodes an object to another representation.- Specified by:
encode
in interfaceStringEncoder<String>
- Parameters:
string
- the object to encode.- Returns:
- the encoded String
-
decode
public String decode(String string)
Description copied from interface:StringEncoder
Decodes a string back to it's initial representation.- Specified by:
decode
in interfaceStringEncoder<String>
- Parameters:
string
- the string to decode.- Returns:
- the decoded object
-
-