Interface ModuleFileTransactions.Downloader

All Known Implementing Classes:
PluginInstallUtils.StagingCatalogue
Enclosing class:
ModuleFileTransactions
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ModuleFileTransactions.Downloader
How a JAR is downloaded.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    download(String link, String fileName, File folder)
    Downloads a file.
  • Method Details

    • download

      void download(String link, String fileName, File folder) throws IOException
      Downloads a file.
      Parameters:
      link - the link
      fileName - the file name to write
      folder - the folder to write it into
      Throws:
      IOException - when the download fails