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