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