com.baidubce.util
Class Base64Utils

java.lang.Object
  extended by com.baidubce.util.Base64Utils

public class Base64Utils
extends Object

Utility methods for encoding and decoding base64.


Constructor Summary
Base64Utils()
           
 
Method Summary
static String decode(String base64str)
          decode base64 string
static String encode(String str)
          Convert str to Base64
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64Utils

public Base64Utils()
Method Detail

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.