Java String Decode decode3(String str)

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

Description

decode

License

Apache License

Declaration

public static byte[] decode3(String str) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.IOException;

public class Main {

    public static byte[] decode3(String str) {
        byte[] bt = null;
        try {//from   ww w . j  a  v  a  2 s  .  com
            sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder();
            bt = decoder.decodeBuffer(str);
        } catch (IOException e) {
            e.printStackTrace();
        }

        return bt;
    }
}

Related

  1. decode(String str)
  2. decode(String str, String encoding)
  3. decode(String string, String encoding)
  4. decode(String text)
  5. decode(String value, String encoding)
  6. decodeString(String s)
  7. decodeString(String s, String charset)
  8. decodeString(String s, String encoding)
  9. decodeString(String str)