Package net.lapismc.lapiscore.utils
Class FileDownloader
- java.lang.Object
-
- net.lapismc.lapiscore.utils.FileDownloader
-
public class FileDownloader extends java.lang.ObjectA simple file downloading class This is not Async so do that your self
-
-
Constructor Summary
Constructors Constructor Description FileDownloader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileDownloaderdownloadFile(java.net.URL url, java.io.File dest)Download a file
-
-
-
Method Detail
-
downloadFile
public FileDownloader downloadFile(java.net.URL url, java.io.File dest) throws java.io.IOException
Download a file- Parameters:
url- The URL of the filedest- Where you want the file saved- Returns:
- returns itself since it's an initializer
- Throws:
java.io.IOException- if the download fails
-
-