Interface DownloadableResource

    • Method Detail

      • fileName

        String fileName()
        The name of the file to be downloaded or if an archive, the naem of the extracted file
        Returns:
      • archiveFileName

        String archiveFileName()
        The name of the archive file to be downloaded
        Returns:
      • rootUrl

        String rootUrl()
        The root url to the resource. This is going to be the directory name of where the file lives.
        Returns:
      • localCacheDirectory

        File localCacheDirectory()
        The storage location representing the directory cache
        Returns:
      • md5Sum

        default String md5Sum()
        Md5sum of the file. Used for verification maybe empty to avoid running verification.
        Returns:
      • download

        default void download​(boolean archive,
                              int retries,
                              int connectionTimeout,
                              int readTimeout)
      • resourceType

        ResourceType resourceType()
        Returns the resource type for this resource
        Returns:
      • existsLocally

        default boolean existsLocally()
        Returns: