app/src/main/java/com/example/hybss/utils/Base64.java
public static String decode(byte[] data, String charset) {
        if (null == data) {
            return null;
        }
//        if (Build.VERSION.SDK_INT < 8) { 
            if (charset == null) {
                // use default
                return new String(decode(data));
            }

            try {
                return new String(decode(data), charset);
            } catch (UnsupportedEncodingException ex) {
                return new String(decode(data));
            }
    }
/**
     * Decode the string and convert back the decoded value into a string using the specified charset. Use default
     * encoding if charset is null or invalid.
     */
Decode the string and convert back the decoded value into a string using the specified charset. Use default
encoding if charset is null or invalid.
Decode the string and convert back the decoded value into a string using the specified charset . Use default encoding if charset is null or invalid .
public static String decode(byte[] data, String charset) {
        if (null == data) {
            return null;
        }
            if (charset == null) {
                return new String(decode(data));
            }
            try {
                return new String(decode(data), charset);
            } catch (UnsupportedEncodingException ex) {
                return new String(decode(data));
            }
    }
public static String decode ( byte [ ] data , String charset ) { if ( null == data ) { return null ; } if ( charset == null ) { return new String ( decode ( data ) ) ; } try { return new String ( decode ( data ) , charset ) ; } catch ( UnsupportedEncodingException ex ) { return new String ( decode ( data ) ) ; } }
Decode the string and convert back the decoded value into a string using the specified charset.
Decode the string and convert back the decoded value into a string using the specified charset .
//        if (Build.VERSION.SDK_INT < 8) {  // use default