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 java.io.File |
download(java.lang.String src,
java.io.File dstDir)
Downloads a file from the specified address and saves it at the specified location
|
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 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 download(java.lang.String src,
java.io.File dstDir)
src - URL pointing to filedstDir - destination of filepublic 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