public class Base64Utils extends Object
| 构造器和说明 |
|---|
Base64Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
altDecodeToBytes(String s)
Translates the specified "alternate representation" Base64 string into a
byte array.
|
static String |
byteArrayToAltBase64(byte[] a)
Translates the specified byte array into an "alternate representation"
Base64 string.
|
static ImageVo |
decodeImage(String imgageBase64Str) |
static byte[] |
decodeToBytes(String s)
Translates the specified Base64 string (as per Preferences.get(byte[]))
into a byte array.
|
static String |
decodeToString(String encoded)
Decode the given Base64 string to original schoolId.
|
static String |
encodeToString(byte[] a)
Translates the specified byte array into a Base64 string as per
Preferences.put(byte[]).
|
static String |
encodeToString(String str)
Encode the given schoolId to Base64 string.
|
public static byte[] altDecodeToBytes(String s)
public static byte[] decodeToBytes(String s)
public static String byteArrayToAltBase64(byte[] a)
public static String encodeToString(byte[] a)
public static String encodeToString(String str)
schoolId - The school ID to encodepublic static String decodeToString(String encoded)
base64SchoolId - The Base64 encoded stringCopyright © 2024. All rights reserved.