19 package org.sleuthkit.autopsy.coreutils;
21 import java.io.UnsupportedEncodingException;
22 import java.net.URLDecoder;
23 import java.net.URLEncoder;
24 import java.util.logging.Level;
25 import org.apache.commons.lang3.StringEscapeUtils;
43 return URLDecoder.decode(url,
"UTF-8");
44 }
catch (UnsupportedEncodingException ex) {
45 logger.log(Level.SEVERE,
"Could not decode URL " + url, ex);
60 return URLEncoder.encode(url,
"UTF-8");
61 }
catch (UnsupportedEncodingException ex) {
62 logger.log(Level.SEVERE,
"Could not encode URL " + url, ex);
76 return StringEscapeUtils.escapeHtml4(toEscape);
87 return StringEscapeUtils.unescapeHtml4(toUnescape);
static String escapeHtml(String toEscape)
static String decodeURL(String url)
static String unEscapeHtml(String toUnescape)
static String encodeURL(String url)
synchronized static Logger getLogger(String name)
static final Logger logger