mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
comment and attribution
This commit is contained in:
parent
5f1902ac8e
commit
becec19303
@ -56,6 +56,7 @@ import org.sleuthkit.autopsy.url.analytics.DomainCategory;
|
|||||||
@SuppressWarnings("try")
|
@SuppressWarnings("try")
|
||||||
public class DefaultDomainCategorizer implements DomainCategorizer {
|
public class DefaultDomainCategorizer implements DomainCategorizer {
|
||||||
|
|
||||||
|
private static final String COMMENT_PREFIX = "#";
|
||||||
private static final String CSV_DELIMITER = ",";
|
private static final String CSV_DELIMITER = ",";
|
||||||
private static final String DOMAIN_TYPE_CSV = "default_domain_categories.csv"; //NON-NLS
|
private static final String DOMAIN_TYPE_CSV = "default_domain_categories.csv"; //NON-NLS
|
||||||
private static final Logger logger = Logger.getLogger(DefaultDomainCategorizer.class.getName());
|
private static final Logger logger = Logger.getLogger(DefaultDomainCategorizer.class.getName());
|
||||||
@ -76,7 +77,7 @@ public class DefaultDomainCategorizer implements DomainCategorizer {
|
|||||||
int lineNum = 1;
|
int lineNum = 1;
|
||||||
while (reader.ready()) {
|
while (reader.ready()) {
|
||||||
String line = reader.readLine();
|
String line = reader.readLine();
|
||||||
if (!StringUtils.isBlank(line)) {
|
if (!StringUtils.isBlank(line) && !line.startsWith(COMMENT_PREFIX)) {
|
||||||
addItem(mapping, line.trim(), lineNum);
|
addItem(mapping, line.trim(), lineNum);
|
||||||
lineNum++;
|
lineNum++;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
#
|
||||||
|
# This file was compiled from multiple sources.
|
||||||
|
# Web Mail: https://github.com/mailcheck/mailcheck/wiki/List-of-Popular-Domains
|
||||||
|
# Disposable Mail: https://www.npmjs.com/package/disposable-email-domains
|
||||||
|
# Messaging: https://www.raymond.cc/blog/list-of-web-messengers-for-your-convenience/
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
icq.com,Messaging
|
icq.com,Messaging
|
||||||
webmessenger.yahoo.com,Messaging
|
webmessenger.yahoo.com,Messaging
|
||||||
talk.google.com,Messaging
|
talk.google.com,Messaging
|
||||||
|
Can't render this file because it is too large.
|
Loading…
x
Reference in New Issue
Block a user