Class BinaryFileDownloader
- java.lang.Object
-
- io.perfana.events.springboot.actuator.BinaryFileDownloader
-
- All Implemented Interfaces:
AutoCloseable
public class BinaryFileDownloader extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description BinaryFileDownloader(com.squareup.okhttp.OkHttpClient client, BinaryFileWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddownload(String url, Map<String,String> headers)
-
-
-
Constructor Detail
-
BinaryFileDownloader
public BinaryFileDownloader(com.squareup.okhttp.OkHttpClient client, BinaryFileWriter writer)
-
-
Method Detail
-
download
public void download(String url, Map<String,String> headers) throws IOException
- Throws:
IOException
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-