public class DeepBoofDataBaseOps
extends java.lang.Object
| Constructor and Description |
|---|
DeepBoofDataBaseOps() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decompressTGZ(java.io.File src,
java.io.File dst) |
static void |
decompressZip(java.io.File src,
java.io.File dst,
boolean deleteZip) |
static int |
download(java.util.List<java.lang.String> urls,
java.io.File output)
Will attempt to download the file from the list of URLs.
|
static void |
download(java.lang.String location,
java.io.File output)
Downloads the specified URL.
|
static java.io.File |
downloadModel(java.util.List<java.lang.String> addresses,
java.io.File destination)
Attempts to download a model from the list of addresses.
|
static java.io.File |
downloadModel(java.lang.String address,
java.io.File destination) |
static void |
moveInsideAndDeleteDir(java.io.File srcDir,
java.io.File dstDir)
Moves everything that's inside the source directory into the destination directory then deletes the source dir.
|
public static java.io.File downloadModel(java.util.List<java.lang.String> addresses,
java.io.File destination)
addresses - List of address that it can be downloaded fromdestination - Directory that the file should be downloaded to and decompressed inpublic static java.io.File downloadModel(java.lang.String address,
java.io.File destination)
address - Address to downloaded fromdestination - Directory that the file should be downloaded to and decompressed indownloadModel(List, File)public static int download(java.util.List<java.lang.String> urls,
java.io.File output)
urls - Sources for the fileoutput - Where to save the file topublic static void download(java.lang.String location,
java.io.File output)
throws java.io.IOException
location - Location of fileoutput - Where it will save the downloaded file tojava.io.IOException - Thrown if anything goes wrongpublic static void decompressTGZ(java.io.File src,
java.io.File dst)
public static void decompressZip(java.io.File src,
java.io.File dst,
boolean deleteZip)
public static void moveInsideAndDeleteDir(java.io.File srcDir,
java.io.File dstDir)
srcDir - source directorydstDir - destination directory