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>
An URL-safe Base64 encoder.
-
-
Field Summary
Fields Modifier and Type Field Description static AndroidBase64UrlSafeEncoder
INSTANCE
An instance of this encoder.
-
Method Summary
All 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.
-
-
-
Field Detail
-
INSTANCE
public static AndroidBase64UrlSafeEncoder INSTANCE
An instance of this encoder.
-
-
Method Detail
-
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
-
-