Go to the documentation of this file.
19package org.sleuthkit.autopsy.coreutils;
21import java.io.UnsupportedEncodingException;
22import java.net.URLDecoder;
23import java.net.URLEncoder;
24import java.util.logging.Level;
25import org.apache.commons.text.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 encodeURL(String url)
static String unEscapeHtml(String toUnescape)
static String decodeURL(String url)
static final Logger logger
static String escapeHtml(String toEscape)
synchronized static Logger getLogger(String name)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.