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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()static booleandeleteDirectory(File path) static voiddeleteFile(String fileName) static booleanstatic longgetRemoteFileSize(String urlParam) getTitle()voidhalt()static booleanvoidrun(org.cytoscape.work.TaskMonitor taskMonitor) static booleanunpackFile(String source, String destination) static booleanMethods 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:
cancelin interfaceorg.cytoscape.work.Task- Overrides:
cancelin classorg.cytoscape.work.AbstractTask
-
run
- Specified by:
runin interfaceorg.cytoscape.work.Task- Specified by:
runin classorg.cytoscape.work.AbstractTask- Throws:
Exception
-
deleteDirectory
-