Improved code.

This commit is contained in:
Christian P. MOMON 2020-11-26 06:37:11 +01:00
parent e95dc5f0c8
commit 76db3f72cd
2 changed files with 23 additions and 1 deletions

View file

@ -323,6 +323,29 @@ public class CrawlCache
return result; return result;
} }
/**
* @param url
* @return
* @throws IOException
*/
public PathProperties restoreToProperties(final URL url) throws IOException
{
PathProperties result;
if (url == null)
{
result = new PathPropertyList();
}
else
{
File file = buildFile(url.toString());
result = PathPropertyUtils.load(file);
}
//
return result;
}
/** /**
* Store. * Store.
* *

View file

@ -150,7 +150,6 @@ public class Crawler
{ {
try try
{ {
logger.info("Crawling " + url); logger.info("Crawling " + url);
// Crawl. // Crawl.