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