Class DownloadResources


  • public class DownloadResources
    extends Object
    Top level namespace for handling downloaded resources. Contains utility classes for working with different resources.
    • Constructor Detail

      • DownloadResources

        public DownloadResources()
    • Method Detail

      • createCustomResource

        public static CustomResource createCustomResource​(String fileName,
                                                          String localCacheDirectory,
                                                          String rootUrl)
        Parameters:
        fileName - the name of the file to download
        localCacheDirectory - the cache directory to store it
        rootUrl - the root url of the download
        Returns:
        the created CustomResource
      • createLegacyZooResource

        public static Dl4jZooResource createLegacyZooResource​(String fileName,
                                                              String modelName)
        Create a legacy dl4j zoo model
        Parameters:
        fileName - the file name of the model to download
        modelName - the name of the model to download
        Returns:
      • createOmnihubResource

        public static OmniHubResource createOmnihubResource​(String fileName)
        Create a OmniHubResource from the given file
        Parameters:
        fileName - the name of the file to download
        Returns:
        the created resource