@Override
public Result load(Request request, int networkPolicy) throws IOException {
JcifsFileEditor editor = new JcifsFileEditor(request.uri);
InputStream inputStream = null;
try {
inputStream = editor.getInputStream();
} catch (IOException e) {
Log.e(TAG, "Failed to get the input stream for "+request.uri, e);
return null;
}
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
inputStream.close();
if (bitmap==null) {
return null;
}
else {
return new Result(bitmap, Picasso.LoadedFrom.NETWORK);
}
}
SmbRequestHandler.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:aos-Video
作者:
评论列表
文章目录