Class AndroidBase64Encoder
- java.lang.Object
-
- org.jivesoftware.smack.util.stringencoder.android.AndroidBase64Encoder
-
- All Implemented Interfaces:
Base64.Encoder
public final class AndroidBase64Encoder extends java.lang.Object implements Base64.Encoder
A Base 64 encoding implementation based on android.util.Base64.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decode(java.lang.String string)
byte[]
encode(byte[] input)
java.lang.String
encodeToString(byte[] input)
java.lang.String
encodeToStringWithoutPadding(byte[] input)
static AndroidBase64Encoder
getInstance()
-
-
-
Method Detail
-
getInstance
public static AndroidBase64Encoder getInstance()
-
decode
public byte[] decode(java.lang.String string)
- Specified by:
decode
in interfaceBase64.Encoder
-
encodeToString
public java.lang.String encodeToString(byte[] input)
- Specified by:
encodeToString
in interfaceBase64.Encoder
-
encodeToStringWithoutPadding
public java.lang.String encodeToStringWithoutPadding(byte[] input)
- Specified by:
encodeToStringWithoutPadding
in interfaceBase64.Encoder
-
encode
public byte[] encode(byte[] input)
- Specified by:
encode
in interfaceBase64.Encoder
-
-