Class DownloadDBTask

java.lang.Object
org.cytoscape.work.AbstractTask
es.imim.DISGENET.tool.DownloadDBTask
All Implemented Interfaces:
org.cytoscape.work.Task

public class DownloadDBTask extends org.cytoscape.work.AbstractTask
helper class to download extract the database file
Author:
michael
  • Constructor Details

  • Method Details

    • isInterrupted

      public static boolean isInterrupted()
    • getFile

      public static boolean getFile(String source, String destination, org.cytoscape.work.TaskMonitor tmon)
    • untarFile

      public static boolean untarFile(String tarFile, String untarDir) throws IOException
      Throws:
      IOException
    • unpackFile

      public static boolean unpackFile(String source, String destination)
    • deleteFile

      public static void deleteFile(String fileName)
    • getRemoteFileSize

      public static long getRemoteFileSize(String urlParam)
    • getTitle

      public String getTitle()
    • halt

      public void halt()
    • cancel

      public void cancel()
      Specified by:
      cancel in interface org.cytoscape.work.Task
      Overrides:
      cancel in class org.cytoscape.work.AbstractTask
    • run

      public void run(org.cytoscape.work.TaskMonitor taskMonitor) throws Exception
      Specified by:
      run in interface org.cytoscape.work.Task
      Specified by:
      run in class org.cytoscape.work.AbstractTask
      Throws:
      Exception
    • deleteDirectory

      public static boolean deleteDirectory(File path)