Here you can find the source of decodeString(String str)
Parameter | Description |
---|---|
str | a parameter |
public static String decodeString(String str)
//package com.java2s; //License from project: Apache License import java.io.IOException; public class Main { /**//from w w w. j a v a 2 s. c o m * Decode a string using Base64 encoding. * * @param str * @return String */ public static String decodeString(String str) { sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder(); try { return new String(dec.decodeBuffer(str)); } catch (IOException io) { throw new RuntimeException(io.getMessage(), io.getCause()); } } }