Package es.imim.DISGENET.tool
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
-
Field Summary
Fields inherited from class org.cytoscape.work.AbstractTask
cancelled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
static boolean
deleteDirectory
(File path) static void
deleteFile
(String fileName) static boolean
static long
getRemoteFileSize
(String urlParam) getTitle()
void
halt()
static boolean
void
run
(org.cytoscape.work.TaskMonitor taskMonitor) static boolean
unpackFile
(String source, String destination) static boolean
Methods inherited from class org.cytoscape.work.AbstractTask
getTaskIterator, insertTasksAfterCurrentTask, insertTasksAfterCurrentTask, setTaskIterator
-
Constructor Details
-
DownloadDBTask
-
-
Method Details
-
isInterrupted
public static boolean isInterrupted() -
getFile
-
untarFile
- Throws:
IOException
-
unpackFile
-
deleteFile
-
getRemoteFileSize
-
getTitle
-
halt
public void halt() -
cancel
public void cancel()- Specified by:
cancel
in interfaceorg.cytoscape.work.Task
- Overrides:
cancel
in classorg.cytoscape.work.AbstractTask
-
run
- Specified by:
run
in interfaceorg.cytoscape.work.Task
- Specified by:
run
in classorg.cytoscape.work.AbstractTask
- Throws:
Exception
-
deleteDirectory
-