Class ResourceFile


  • public class ResourceFile
    extends Object
    • Constructor Detail

      • ResourceFile

        public ResourceFile()
    • Method Detail

      • relativePath

        public String relativePath()
      • localFileExistsAndValid

        public boolean localFileExistsAndValid​(File cacheRootDir)
      • getLocalFile

        protected File getLocalFile​(File cacheRootDir)
        Get the local file - or where it *would* be if it has been downloaded. If it does not exist, it will not be downloaded here
        Returns:
      • localFile

        public File localFile​(File cacheRootDir)
        Get the local file - downloading and caching if required
        Returns:
      • sha256

        public static String sha256​(File f)
      • newMapper

        public static final org.nd4j.shade.jackson.databind.ObjectMapper newMapper()