List of usage examples for org.apache.commons.codec EncoderException getLocalizedMessage
public String getLocalizedMessage()
From source file:nor.util.Codec.java
public static String urlEncode(final String str) { String ret = str;//from ww w.ja v a 2s .c o m try { ret = URLCodec.encode(str); } catch (EncoderException e) { LOGGER.severe(e.getLocalizedMessage()); } return ret; }
From source file:nor.util.Codec.java
public static String base64Encode(final String str, final String enc) { String ret = str;//from w ww . j av a 2 s.com try { ret = BCodec.encode(str, enc); } catch (EncoderException e) { LOGGER.severe(e.getLocalizedMessage()); } return ret; }
From source file:org.eclipse.birt.report.engine.emitter.ppt.PPTWriter.java
private String codeLink(String link) { try {/* w ww .ja v a 2 s . co m*/ if (quotedPrintableCodec == null) { quotedPrintableCodec = new QuotedPrintableCodec(); } link = quotedPrintableCodec.encode(link); } catch (EncoderException e) { logger.log(Level.SEVERE, e.getLocalizedMessage(), e); } return link; }