Class DownloaderImpl


  • public class DownloaderImpl
    extends java.lang.Object
    Class providing download utilities with efficient behavior and low impact on memory. This downloader uses a temporary directory to store data being downloaded.
    • Constructor Summary

      Constructors 
      Constructor Description
      DownloaderImpl​(java.nio.file.Path temporaryDirectory)
      Builds a downloader using the given directory as a temporary directory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void download​(java.net.URL resourceUrl, java.nio.file.Path destinationFile)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DownloaderImpl

        public DownloaderImpl​(java.nio.file.Path temporaryDirectory)
        Builds a downloader using the given directory as a temporary directory.
        Parameters:
        temporaryDirectory - Temporary directory.
    • Method Detail

      • download

        public void download​(java.net.URL resourceUrl,
                             java.nio.file.Path destinationFile)
                      throws org.siouan.frontendgradleplugin.core.DownloadException
        Throws:
        org.siouan.frontendgradleplugin.core.DownloadException