Class Download


  • public class Download
    extends java.lang.Object
    Command line program: Build database
    Author:
    pcingola
    • Constructor Summary

      Constructors 
      Constructor Description
      Download()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean download​(java.lang.String urlString, java.lang.String localFile)  
      boolean download​(java.net.URL url, java.lang.String localFile)
      Download a file
      void setDebug​(boolean debug)  
      void setUpdate​(boolean update)  
      void setVerbose​(boolean verbose)  
      boolean unzip​(java.lang.String zipFile, java.lang.String mainDir, java.lang.String dataDir)
      UnZIP all files
      static java.lang.String urlBaseName​(java.lang.String url)
      File name from URL (i.e.
      • Methods inherited from class java.lang.Object

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

      • Download

        public Download()
    • Method Detail

      • urlBaseName

        public static java.lang.String urlBaseName​(java.lang.String url)
        File name from URL (i.e. anything after the last '/')
      • download

        public boolean download​(java.lang.String urlString,
                                java.lang.String localFile)
      • download

        public boolean download​(java.net.URL url,
                                java.lang.String localFile)
        Download a file
      • setDebug

        public void setDebug​(boolean debug)
      • setUpdate

        public void setUpdate​(boolean update)
      • setVerbose

        public void setVerbose​(boolean verbose)
      • unzip

        public boolean unzip​(java.lang.String zipFile,
                             java.lang.String mainDir,
                             java.lang.String dataDir)
        UnZIP all files