Package top.focess.qq.api.util
Class Base64
- java.lang.Object
-
- top.focess.qq.api.util.Base64
-
public class Base64 extends Object
This is a Base64 util class.
-
-
Constructor Summary
Constructors Constructor Description Base64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]base64Decode(String value)Used to decode the data with base64static Stringbase64Encode(byte[] bytes)Used to encode the data with base64 andStandardCharsets.ISO_8859_1coded
-
-
-
Method Detail
-
base64Encode
@NotNull @Contract("_ -> new") public static String base64Encode(byte[] bytes)Used to encode the data with base64 andStandardCharsets.ISO_8859_1coded- Parameters:
bytes- the data need to be encoded- Returns:
- the encoded data with base64
-
base64Decode
public static byte[] base64Decode(String value)
Used to decode the data with base64- Parameters:
value- the data need to be decoded- Returns:
- the decoded data with base64
-
-