Class FileDownloader
- java.lang.Object
-
- org.n52.iceland.statistics.api.utils.FileDownloader
-
public final class FileDownloader extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddownloadFile(String url, String outfilePath)Download the url to the specified locationstatic voidgunzipFile(String filePath)static booleanisPathExists(String fullPath)
-
-
-
Method Detail
-
downloadFile
public static void downloadFile(String url, String outfilePath) throws FileNotFoundException, IOException
Download the url to the specified location- Parameters:
url- url to downloadoutfilePath- outputfile location- Throws:
FileNotFoundException- if an error occursIOException- if an error occurs
-
gunzipFile
public static void gunzipFile(String filePath) throws IOException
- Throws:
IOException
-
isPathExists
public static boolean isPathExists(String fullPath)
-
-