Java Base64 Decode base64decode(String text)

Here you can find the source of base64decode(String text)

Description

basedecode

License

Open Source License

Declaration

public static String base64decode(String text) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;

import sun.misc.BASE64Decoder;

public class Main {
    private static final String DEFAULT_ENCODING = "UTF-8";
    private static final BASE64Decoder dec = new BASE64Decoder();

    public static String base64decode(String text) {
        try {/*from www.j  av  a2  s.com*/
            return new String(dec.decodeBuffer(text), DEFAULT_ENCODING);
        } catch (IOException e) {
            return null;
        }
    }
}

Related

  1. Base64Decode(String str)
  2. base64decode(String str)
  3. base64Decode(String string)
  4. base64decode(String string)
  5. base64decode(String strMi)
  6. base64decodebyte(String txt)
  7. base64Decoder(char[] src, int start)
  8. base64decodeString(String inputString)
  9. decode(String base64)