use of com.jeesuite.filesystem.UploadObject in project jeesuite-libs by vakinge.
the class HttpDownloader method read.
public static UploadObject read(String url) throws IOException {
Request.Builder requestBuilder = new Request.Builder().url(url);
Response response = httpClient.newCall(requestBuilder.build()).execute();
UploadObject item = new UploadObject(FilePathHelper.parseFileName(url), response.body().bytes());
return item;
}
Aggregations