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;
42 return URLDecoder.decode(url,
"UTF-8");
43 }
catch (UnsupportedEncodingException ex) {
44 logger.log(Level.SEVERE,
"Could not decode URL " + url, ex);
58 return URLEncoder.encode(url,
"UTF-8");
59 }
catch (UnsupportedEncodingException ex) {
60 logger.log(Level.SEVERE,
"Could not encode URL " + url, ex);
72 return StringEscapeUtils.escapeHtml4(toEscape);
81 return StringEscapeUtils.unescapeHtml4(toUnescape);
static String escapeHtml(String toEscape)
static String decodeURL(String url)
static String unEscapeHtml(String toUnescape)
static String encodeURL(String url)
static final Logger logger
static Logger getLogger(String name)