Android String Decode decode(String str)

Here you can find the source of decode(String str)

Description

decode

Declaration

public static String decode(String str) 

Method Source Code

//package com.java2s;
import android.util.Base64;

public class Main {

    public static String decode(String str) {
        try {/*from  w w w  .j  a  v a 2 s.  c  om*/
            byte[] result = Base64.decode(str, Base64.DEFAULT);
            return new String(result);
        } catch (Exception e) {
            return str;
        }
    }
}

Related

  1. decode(String base64)
  2. decode(String source)
  3. decode(String str)
  4. decode(String str)
  5. decode(String s)
  6. decode(String base64)
  7. decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height)
  8. decode(String s)