public class Base64 extends Object
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| 构造器和说明 |
|---|
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 © 2018–2021 baomidou. All rights reserved.