com.baidubce.util
Class Base64Utils
java.lang.Object
com.baidubce.util.Base64Utils
public class Base64Utils
- extends Object
Utility methods for encoding and decoding base64.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64Utils
public Base64Utils()
encode
public static String encode(String str)
- Convert str to Base64
- Parameters:
str - the string need encoded
- Returns:
- the base64 code of str
decode
public static String decode(String base64str)
- decode base64 string
- Parameters:
base64str - the string need decoded
- Returns:
- Decoded string
Copyright © 2020. All rights reserved.