Changes

Summary

  1. Add mising declaration and import. (commit: 82578d0) (details)
  2. Significantly improve efficiency of downloading the html-files and calculating their hash and size, by separating the business-logic of the download from the one of saving the html in a string for internal_links-retrieval. This separation allows us to use the more performant "BufferedInput/OutputStream" and gather hash and size related date during the download, instead of reopening and checking the file additional times after it is downloaded. (commit: 2af115c) (details)
Commit 82578d069b5ffccb9a21753f1aba84849f1ac645 by Lampros Smyrnaios
Add mising declaration and import.
(commit: 82578d0)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/ConnSupportUtils.java (diff)
Commit 2af115c43aede13e855ea84493374f09d55bb6e2 by Lampros Smyrnaios
Significantly improve efficiency of downloading the html-files and calculating their hash and size, by separating the business-logic of the download from the one of saving the html in a string for internal_links-retrieval. This separation allows us to use the more performant "BufferedInput/OutputStream" and gather hash and size related date during the download, instead of reopening and checking the file additional times after it is downloaded.
Additionally, this separation greatly improves maintainability.
(commit: 2af115c)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/crawler/PageCrawler.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/file/FileUtils.java (diff)
The file was removedsrc/main/java/eu/openaire/publications_retriever/util/file/HtmlResult.java
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/ConnSupportUtils.java (diff)
The file was modifiedsrc/test/java/eu/openaire/publications_retriever/test/LinkExtraction.java (diff)