public class DownloadDBTask
extends org.cytoscape.work.AbstractTask
| Constructor and Description |
|---|
DownloadDBTask(String url,
String dest,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
static boolean |
deleteDirectory(File path) |
static void |
deleteFile(String fileName) |
static boolean |
getFile(String source,
String destination,
org.cytoscape.work.TaskMonitor tmon) |
static long |
getRemoteFileSize(String urlParam) |
String |
getTitle() |
void |
halt() |
static boolean |
isInterrupted() |
void |
run(org.cytoscape.work.TaskMonitor taskMonitor) |
static boolean |
unpackFile(String source,
String destination) |
static boolean |
untarFile(String tarFile,
String untarDir) |
public static boolean isInterrupted()
public static boolean getFile(String source, String destination, org.cytoscape.work.TaskMonitor tmon)
public static boolean untarFile(String tarFile, String untarDir) throws IOException
IOExceptionpublic static void deleteFile(String fileName)
public static long getRemoteFileSize(String urlParam)
public String getTitle()
public void halt()
public void cancel()
cancel in interface org.cytoscape.work.Taskcancel in class org.cytoscape.work.AbstractTaskpublic void run(org.cytoscape.work.TaskMonitor taskMonitor)
throws Exception
run in interface org.cytoscape.work.Taskrun in class org.cytoscape.work.AbstractTaskExceptionpublic static boolean deleteDirectory(File path)
Copyright © 2019. All rights reserved.