public class Base64 extends Object
| 构造器和说明 |
|---|
Base64() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
altBase64ToByteArray(String s) |
static byte[] |
base64ToByteArray(String s) |
static String |
byteArrayToAltBase64(byte[] a) |
static String |
byteArrayToBase64(byte[] a) |
public static String byteArrayToBase64(byte[] a)
a - Translates the specified byte array into a Base64 string as per Preferences.put(byte[]).public static String byteArrayToAltBase64(byte[] a)
a - Translates the specified byte array into an "alternate representation" Base64 string. This non-standard variant uses an
alphabet that does not contain the uppercase alphabetic characters, which makes it suitable for use in situations where case-folding
occurs.public static byte[] base64ToByteArray(String s)
s - Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array.public static byte[] altBase64ToByteArray(String s)
s - Translates the specified "alternate representation" Base64 string into a byte array.Copyright © 2020 humingfeng. All rights reserved.