List of usage examples for org.apache.commons.codec.net BCodec encode
public String encode(final String value, final String charset) throws EncoderException
From source file:nor.util.Codec.java
public static String base64Encode(final String str, final String enc) { String ret = str;/*from www .j a v a 2 s. co m*/ try { ret = BCodec.encode(str, enc); } catch (EncoderException e) { LOGGER.severe(e.getLocalizedMessage()); } return ret; }