Improved code.
This commit is contained in:
parent
e95dc5f0c8
commit
76db3f72cd
2 changed files with 23 additions and 1 deletions
|
@ -323,6 +323,29 @@ public class CrawlCache
|
|||
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.
|
||||
*
|
||||
|
|
|
@ -150,7 +150,6 @@ public class Crawler
|
|||
{
|
||||
try
|
||||
{
|
||||
|
||||
logger.info("Crawling " + url);
|
||||
|
||||
// Crawl.
|
||||
|
|
Loading…
Reference in a new issue