Class Java7Base64UrlSafeEncoder
java.lang.Object
org.jivesoftware.smack.util.stringencoder.java7.Java7Base64UrlSafeEncoder
- All Implemented Interfaces:
StringEncoder<String>
A Base 64 encoding implementation that generates filename and Url safe encodings.
Note: This does NOT produce standard Base 64 encodings, but a variant as defined in Section 4 of RFC3548: http://www.faqs.org/rfcs/rfc3548.html.
-
Method Summary
Modifier and TypeMethodDescriptionDecodes a string back to it's initial representation.Encodes an object to another representation.static Java7Base64UrlSafeEncoder
-
Method Details
-
getInstance
-
encode
Description copied from interface:StringEncoder
Encodes an object to another representation.- Specified by:
encode
in interfaceStringEncoder<String>
- Parameters:
s
- the object to encode.- Returns:
- the encoded String
-
decode
Description copied from interface:StringEncoder
Decodes a string back to it's initial representation.- Specified by:
decode
in interfaceStringEncoder<String>
- Parameters:
s
- the string to decode.- Returns:
- the decoded object
-